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