veza/config/prometheus.yml
senke 6b25ccc9da feat(monitoring): add Prometheus alerting rules for critical conditions
INF-08: Alert rules for service_down, high_error_rate (>5%),
high_latency (P99>2s), and redis_unreachable. Enabled rule_files
in prometheus.yml.
2026-02-22 17:36:07 +01:00

26 lines
632 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "prometheus/alert_rules.yml"
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'veza-backend'
static_configs:
- targets: ['backend-api:8080'] # Use container name in same network
metrics_path: '/metrics'
- job_name: 'veza-chat'
static_configs:
- targets: ['chat-server:8081'] # Use container name
metrics_path: '/metrics'
- job_name: 'veza-stream'
static_configs:
- targets: ['stream-server:8082'] # Use container name
metrics_path: '/metrics'