Exlude stateuful service objects to prevent double scrapes

This commit is contained in:
Stefan Reimer 2020-08-15 14:49:30 +01:00
parent bef01e96ab
commit 56ef55ef7a

View File

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