1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Prometheus configuration for OxiRS Chat monitoring
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
cluster: 'oxirs-chat'
environment: 'production'
# Scrape configurations
scrape_configs:
# OxiRS Chat metrics
- job_name: 'oxirs-chat'
static_configs:
- targets:
metrics_path: '/metrics'
scrape_interval: 10s
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets:
# Redis monitoring (if redis_exporter is used)
- job_name: 'redis'
static_configs:
- targets:
metrics_path: '/metrics'
# Alerting rules
rule_files:
- 'alerts.yml'
# Alertmanager configuration (optional)
# alerting:
# alertmanagers:
# - static_configs:
# - targets: ['alertmanager:9093']