Enable integration with Alert Manager.

This commit is contained in:
Kazuhiro MUSASHI 2020-07-18 14:56:47 +09:00
parent 6f0f7ff472
commit ff6d4a7185
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,8 @@ global:
rule_files: rule_files:
# - "first.rules" # - "first.rules"
# - "second.rules" # - "second.rules"
- '/etc/prometheus.d/alerts/node_exporter.yml'
- '/etc/prometheus.d/alerts/prometheus.yml'
# A scrape configuration containing exactly one endpoint to scrape: # A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself. # Here it's Prometheus itself.
@ -41,3 +43,9 @@ scrape_configs:
bearer_token: 'e351393306ea245de5f9588cbe8627c74db007c6' bearer_token: 'e351393306ea245de5f9588cbe8627c74db007c6'
static_configs: static_configs:
- targets: ['10.0.1.234:9099'] - targets: ['10.0.1.234:9099']
alerting:
alertmanagers:
- static_configs:
- targets:
- "localhost:9093"