monitoring: алерты через Alertmanager → Telegram (node down/cpu/mem/disk)
This commit is contained in:
@@ -4,17 +4,23 @@ global:
|
||||
external_labels:
|
||||
monitor: ruzzy-infra
|
||||
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets: ['alertmanager:9093']
|
||||
|
||||
rule_files:
|
||||
- /etc/prometheus/rules/*.yml
|
||||
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
# Хосты: новый сервер = добавить файл в targets/node/<name>.yml + reload
|
||||
- job_name: node
|
||||
file_sd_configs:
|
||||
- files: ['/etc/prometheus/targets/node/*.yml']
|
||||
|
||||
# Контейнеры
|
||||
- job_name: cadvisor
|
||||
file_sd_configs:
|
||||
- files: ['/etc/prometheus/targets/cadvisor/*.yml']
|
||||
|
||||
Reference in New Issue
Block a user