From ff6d4a7185c13aa125c339298642e544aa59dd06 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 18 Jul 2020 14:56:47 +0900 Subject: [PATCH] Enable integration with Alert Manager. --- .../prometheus/files/etc/prometheus.d/prometheus.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml index 53fd5a4..215e5e9 100644 --- a/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml +++ b/cookbooks/prometheus/files/etc/prometheus.d/prometheus.yml @@ -13,6 +13,8 @@ global: rule_files: # - "first.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: # Here it's Prometheus itself. @@ -41,3 +43,9 @@ scrape_configs: bearer_token: 'e351393306ea245de5f9588cbe8627c74db007c6' static_configs: - targets: ['10.0.1.234:9099'] +alerting: + alertmanagers: + - static_configs: + - targets: + - "localhost:9093" +