From 053682964e7822e82bdc54552f4f47044cfcee43 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 8 Dec 2021 20:38:32 -0800 Subject: [PATCH] puppet: Only fetch from running hosts in Grafana ec2 discovery. --- puppet/zulip_ops/files/prometheus/prometheus.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/puppet/zulip_ops/files/prometheus/prometheus.yaml b/puppet/zulip_ops/files/prometheus/prometheus.yaml index 1c431ac470..79f3a37f57 100644 --- a/puppet/zulip_ops/files/prometheus/prometheus.yaml +++ b/puppet/zulip_ops/files/prometheus/prometheus.yaml @@ -19,6 +19,9 @@ scrape_configs: - region: us-east-1 port: 9100 refresh_interval: 1m + filters: + - name: instance-state-name + values: ["running"] relabel_configs: - source_labels: ["__meta_ec2_tag_Name"] target_label: "instance"