mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
[bitnami/kube-state-metrics] Add Service annotation prometheus.io/port (#9725)
VictoriaMetrics agent won't discover the Prometheus Scrape if this annotation is missing. Relates to VictoriaMetrics/VictoriaMetrics#2417 Signed-off-by: David Giron <contacto@duhowpi.net>
This commit is contained in:
@@ -23,4 +23,4 @@ name: kube-state-metrics
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-kube-state-metrics
|
||||
- https://github.com/kubernetes/kube-state-metrics
|
||||
version: 2.2.16
|
||||
version: 2.2.17
|
||||
|
||||
@@ -6,6 +6,7 @@ metadata:
|
||||
annotations:
|
||||
{{- if not .Values.serviceMonitor.enabled }}
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: {{ .Values.service.port | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.commonAnnotations }}
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||||
|
||||
Reference in New Issue
Block a user