Exlude stateuful service objects to prevent double scrapes
This commit is contained in:
parent
dd8337660f
commit
bef01e96ab
@ -19,6 +19,9 @@ spec:
|
||||
port: http
|
||||
path: /_prometheus/metrics
|
||||
selector:
|
||||
matchExpressions:
|
||||
key: elasticsearch.k8s.elastic.co/statefulset-name
|
||||
operator: DoesNotExist
|
||||
matchLabels:
|
||||
common.k8s.elastic.co/type: elasticsearch
|
||||
elasticsearch.k8s.elastic.co/cluster-name: {{ template "kubezero-lib.fullname" $ }}
|
||||
|
Loading…
Reference in New Issue
Block a user