Exlude stateuful service objects to prevent double scrapes
This commit is contained in:
parent
aac2e235f8
commit
03bab16aa8
|
@ -20,7 +20,7 @@ spec:
|
|||
path: /_prometheus/metrics
|
||||
selector:
|
||||
matchExpressions:
|
||||
key: elasticsearch.k8s.elastic.co/statefulset-name
|
||||
- key: elasticsearch.k8s.elastic.co/statefulset-name
|
||||
operator: DoesNotExist
|
||||
matchLabels:
|
||||
common.k8s.elastic.co/type: elasticsearch
|
||||
|
|
Loading…
Reference in New Issue