Skip to content

Commit dea8c10

Browse files
committed
Change prometheus config
1 parent 9c569be commit dea8c10

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

prometheus/prometheus.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ scrape_configs:
3131
- port: 9400
3232
refresh_interval: 10s
3333
filters:
34+
- name: instance-state-name
35+
values:
36+
- running
37+
- name: tag:Name
38+
values:
39+
- Compute
3440
- name: instance-type
3541
values:
3642
- p2.xlarge
@@ -57,17 +63,13 @@ scrape_configs:
5763
target_label: instance_name
5864
- source_labels: [__meta_ec2_tag_Application]
5965
target_label: instance_grafana
60-
regex: __Application__
61-
action: keep
6266
- source_labels: [__meta_ec2_instance_id]
6367
target_label: instance_id
6468
- source_labels: [__meta_ec2_availability_zone]
6569
target_label: instance_az
6670
- source_labels: [__meta_ec2_instance_state]
67-
regex: running
68-
action: keep
6971
target_label: instance_state
7072
- source_labels: [__meta_ec2_instance_type]
7173
target_label: instance_type
7274
- source_labels: [__meta_ec2_vpc_id]
73-
target_label: instance_vpc
75+
target_label: instance_vpc

0 commit comments

Comments
 (0)