Files
CE-Association-Website/prometheus.yml
Amirhossein Khalili 7a8ddeabed
Some checks failed
CI/CD / Backend & Frontend Checks (push) Has been cancelled
CI/CD / Deploy to Production (push) Has been cancelled
init
2026-05-18 11:34:07 +03:30

43 lines
1.0 KiB
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- /etc/prometheus/alert.rules.yml
alerting:
alertmanagers:
- static_configs:
- targets: ['alertmanager:9093']
scrape_configs:
# Prometheus self-metrics (so you can see if Prom is up)
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus:9090']
# Host metrics from node_exporter (you run it in host network mode)
- job_name: 'node'
static_configs:
- targets: ['node_exporter:9100']
# (Optional) enable AFTER you expose metrics on Traefik (port 8082)
- job_name: 'traefik'
metrics_path: /metrics
static_configs:
- targets: ['traefik:8082']
- job_name: 'postgres'
static_configs:
- targets: ['postgres_exporter:9187']
- job_name: 'redis'
static_configs:
- targets: ['redis:9121']
# (Optional) enable ONLY if your Django exposes /metrics (django-prometheus)
- job_name: 'django'
metrics_path: /metrics
static_configs:
- targets: ['web:8000']