Prevent prometheus to scrap both services (#1817)

Signed-off-by: Bruno Clermont <bruno@robotinfra.com>
pull/1819/head
Bruno Clermont 5 years ago committed by GitHub
parent 0ad1c6c1af
commit ba53328673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      production/helm/loki/Chart.yaml
  2. 1
      production/helm/loki/templates/service-headless.yaml
  3. 1
      production/helm/loki/templates/servicemonitor.yaml

@ -1,6 +1,6 @@
apiVersion: "v1"
name: loki
version: 0.25.1
version: 0.25.2
appVersion: v1.3.0
kubeVersion: "^1.10.0-0"
description: "Loki: like Prometheus, but for logs."

@ -8,6 +8,7 @@ metadata:
chart: {{ template "loki.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
variant: headless
spec:
clusterIP: None
ports:

@ -16,6 +16,7 @@ spec:
matchLabels:
app: {{ template "loki.name" . }}
release: {{ .Release.Name | quote }}
variant: headless
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}

Loading…
Cancel
Save