ops: add production observability and recovery
This commit is contained in:
21
infra/monitoring/prometheus.yml
Normal file
21
infra/monitoring/prometheus.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
global:
|
||||
scrape_interval: 30s
|
||||
evaluation_interval: 30s
|
||||
|
||||
rule_files:
|
||||
- /etc/prometheus/alerts.yml
|
||||
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets:
|
||||
- alertmanager:9093
|
||||
|
||||
scrape_configs:
|
||||
- job_name: ai-ticket-backend
|
||||
metrics_path: /api/system/metrics
|
||||
authorization:
|
||||
credentials_file: /run/secrets/metrics_token
|
||||
static_configs:
|
||||
- targets:
|
||||
- backend:8000
|
||||
Reference in New Issue
Block a user