feat: support custom EC2 filters for metrics
This commit is contained in:
parent
6ef189a5ff
commit
3cbd8f3d80
@ -51,6 +51,9 @@ prometheus:
|
|||||||
filters:
|
filters:
|
||||||
- name: 'tag-key'
|
- name: 'tag-key'
|
||||||
values: ['zdt:prometheus.crio']
|
values: ['zdt:prometheus.crio']
|
||||||
|
{{- with .metrics.kubezero.prometheus.prometheusSpec.additionalScrapeConfigsEC2Filters }}
|
||||||
|
{{- toYaml . | nindent 14 }}
|
||||||
|
{{- end }}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels:
|
- source_labels:
|
||||||
- '__meta_ec2_instance_id'
|
- '__meta_ec2_instance_id'
|
||||||
@ -71,6 +74,9 @@ prometheus:
|
|||||||
filters:
|
filters:
|
||||||
- name: 'tag-key'
|
- name: 'tag-key'
|
||||||
values: ['zdt:prometheus.node-exporter']
|
values: ['zdt:prometheus.node-exporter']
|
||||||
|
{{- with .metrics.kubezero.prometheus.prometheusSpec.additionalScrapeConfigsEC2Filters }}
|
||||||
|
{{- toYaml . | nindent 14 }}
|
||||||
|
{{- end }}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels:
|
- source_labels:
|
||||||
- '__meta_ec2_instance_id'
|
- '__meta_ec2_instance_id'
|
||||||
@ -91,6 +97,9 @@ prometheus:
|
|||||||
filters:
|
filters:
|
||||||
- name: 'tag-key'
|
- name: 'tag-key'
|
||||||
values: ['zdt:prometheus.docker-registry']
|
values: ['zdt:prometheus.docker-registry']
|
||||||
|
{{- with .metrics.kubezero.prometheus.prometheusSpec.additionalScrapeConfigsEC2Filters }}
|
||||||
|
{{- toYaml . | nindent 14 }}
|
||||||
|
{{- end }}
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels:
|
- source_labels:
|
||||||
- '__meta_ec2_instance_id'
|
- '__meta_ec2_instance_id'
|
||||||
|
Loading…
Reference in New Issue
Block a user