Prometheus scraper config from service -> pod (#11916)

Signed-off-by: Ian Hoegen <ianhoegen@gmail.com>
This commit is contained in:
Ian Hoegen
2019-03-08 09:54:28 -08:00
committed by Kubernetes Prow Robot
parent fa54225969
commit 6ccffa0f56
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ appVersion: "v1.0.2"
home: https://comcast.github.io/kuberhealthy/
description: The official Helm chart for Kuberhealthy.
name: kuberhealthy
version: 1.2.2
version: 1.2.3
maintainers:
- name: integrii
email: eric.greer@comcast.com
@@ -19,6 +19,7 @@ keywords:
- comcast
- health
- cluster
- prometheus
sources:
- https://github.com/Comcast/kuberhealthy
- https://github.com/helm/charts/tree/master/stable/kuberhealthy
@@ -26,6 +26,13 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.prometheus.enabled -}}
{{- if .Values.prometheus.enableScraping -}}
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
prometheus.io/port: "8080"
{{- end }}
{{- end }}
labels:
app: {{ template "kuberhealthy.name" . }}
chart: {{ .Chart.Name }}
@@ -4,13 +4,6 @@ metadata:
labels:
app: {{ template "kuberhealthy.name" . }}
release: {{ .Release.Name }}
{{ if .Values.prometheus.enabled -}}
{{ if .Values.prometheus.enableScraping -}}
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/metrics"
{{ end -}}
{{ end -}}
name: {{ template "kuberhealthy.name" . }}
spec:
type: {{ .Values.service.type }}