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
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ scrape_configs:
- region: us-east-1 - region: us-east-1
port: 9100 port: 9100
refresh_interval: 1m refresh_interval: 1m
filters:
- name: instance-state-name
values: ["running"]
relabel_configs: relabel_configs:
- source_labels: ["__meta_ec2_tag_Name"] - source_labels: ["__meta_ec2_tag_Name"]
target_label: "instance" target_label: "instance"