refactor
This commit is contained in:
48
monitoring/prometheus.yml
Normal file
48
monitoring/prometheus.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
# Prometheus configuration для мониторинга Lottery Bot
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
# Правила алертов
|
||||
rule_files:
|
||||
- "alerts.yml"
|
||||
|
||||
# Настройки Alertmanager
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets:
|
||||
# - alertmanager:9093
|
||||
|
||||
# Targets для мониторинга
|
||||
scrape_configs:
|
||||
# Prometheus self-monitoring
|
||||
- job_name: 'prometheus'
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
scrape_interval: 5s
|
||||
|
||||
# Мониторинг Lottery Bot (если добавите метрики)
|
||||
- job_name: 'lottery-bot'
|
||||
static_configs:
|
||||
- targets: ['lottery-bot:8000']
|
||||
scrape_interval: 10s
|
||||
metrics_path: /metrics
|
||||
|
||||
# Мониторинг PostgreSQL
|
||||
- job_name: 'postgres'
|
||||
static_configs:
|
||||
- targets: ['postgres:5432']
|
||||
scrape_interval: 30s
|
||||
|
||||
# Мониторинг Redis
|
||||
- job_name: 'redis'
|
||||
static_configs:
|
||||
- targets: ['redis:6379']
|
||||
scrape_interval: 30s
|
||||
|
||||
# Node exporter (если добавите)
|
||||
- job_name: 'node-exporter'
|
||||
static_configs:
|
||||
- targets: ['node-exporter:9100']
|
||||
scrape_interval: 15s
|
||||
Reference in New Issue
Block a user