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" +