Exlude stateuful service objects to prevent double scrapes

This commit is contained in:
Stefan Reimer 2020-08-15 14:45:43 +01:00
parent a6eab7d24b
commit aac2e235f8
1 changed files with 3 additions and 0 deletions

View File

@ -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" $ }}