Files
infra/stacks/monitoring/prometheus/prometheus.yml

21 lines
527 B
YAML

global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: ruzzy-infra
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']