36 lines
765 B
YAML
36 lines
765 B
YAML
# Конфигурация мониторинга Prometheus для Django приложения
|
|
|
|
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
rule_files:
|
|
- "alert.rules"
|
|
|
|
scrape_configs:
|
|
- job_name: 'django-app'
|
|
static_configs:
|
|
- targets: ['localhost:8000']
|
|
metrics_path: '/metrics'
|
|
scrape_interval: 30s
|
|
|
|
- job_name: 'celery-exporter'
|
|
static_configs:
|
|
- targets: ['localhost:9542']
|
|
scrape_interval: 30s
|
|
|
|
- job_name: 'postgresql'
|
|
static_configs:
|
|
- targets: ['localhost:9187']
|
|
scrape_interval: 30s
|
|
|
|
- job_name: 'redis'
|
|
static_configs:
|
|
- targets: ['localhost:9121']
|
|
scrape_interval: 30s
|
|
|
|
alerting:
|
|
alertmanagers:
|
|
- static_configs:
|
|
- targets:
|
|
- alertmanager:9093 |