monitoring: алерты через Alertmanager → Telegram (node down/cpu/mem/disk)

This commit is contained in:
Ruslan Gilfanov
2026-06-21 19:34:39 +03:00
parent 75d00cc400
commit b2d04e0573
5 changed files with 83 additions and 2 deletions

View File

@@ -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']