formations/developpement/securite_web/ressources/prometheus-demo/prometheus/prometheus.yml

31 lines
719 B
YAML
Raw Permalink Normal View History

# Configuration de l'application sur laquelle
# Prometheus doit récolter des informations
scrape_configs:
- job_name: app1
scrape_interval: 10s
metrics_path: /metrics
static_configs:
- targets: [ "app1:3000" ]
# - job_name: app2
# scrape_interval: 10s
# metrics_path: /metrics
# static_configs:
# - targets: [ "app2:3000" ]
# - job_name: cadvisor
# scrape_interval: 10s
# metrics_path: /metrics
# static_configs:
# - targets: [ "cadvisor:8080" ]
# Configuration de l'alertmanager
alerting:
alertmanagers:
- static_configs:
- targets: [ "alertmanager:9093" ]
# Définition des règles d'alertes
rule_files:
- "/etc/prometheus/rules.d/*.yml"