puppet: Only fetch from running hosts in Grafana ec2 discovery.

This commit is contained in:
Alex Vandiver
2021-12-08 20:38:32 -08:00
committed by Tim Abbott
parent 36f03ccd5c
commit 053682964e

View File

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