2017-12-21 16:55:59 +01:00
|
|
|
# Configuration de l'application sur laquelle
|
|
|
|
# Prometheus doit récolter des informations
|
|
|
|
|
|
|
|
scrape_configs:
|
2018-01-25 22:10:30 +01:00
|
|
|
- job_name: app1
|
2017-12-21 16:55:59 +01:00
|
|
|
scrape_interval: 10s
|
|
|
|
metrics_path: /metrics
|
|
|
|
static_configs:
|
2018-01-25 22:10:30 +01:00
|
|
|
- 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" ]
|
2017-12-21 16:55:59 +01:00
|
|
|
|
|
|
|
# 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"
|