From 3382f39046513d93742c02f39d9122f511d575ab Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 31 Oct 2017 23:02:08 +0100 Subject: [PATCH] Explicitely add alertmanager to example config (#3383) As alertmanager needs to be configured in the config file in Prometheus 2, I think it is useful to have it in the example config. Also renamed the rules in the example config so they are explicitely yml files. --- documentation/examples/prometheus.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/documentation/examples/prometheus.yml b/documentation/examples/prometheus.yml index 30668bc2b..3f04f541c 100644 --- a/documentation/examples/prometheus.yml +++ b/documentation/examples/prometheus.yml @@ -9,10 +9,17 @@ global: external_labels: monitor: 'codelab-monitor' +# Alertmanager configuration +alerting: + alertmanagers: + - static_config: + - targets: + # - alertmanager:9093 + # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: - # - "first.rules" - # - "second.rules" + # - "first_rules.yml" + # - "second_rules.yml" # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself.