mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* fix(stable/stackdriver-exporter): add prometheusRule additionalLabels Signed-off-by: Ricardo Medeiros <ricardo.costa@treasy.com.br> * chore(stable/stackdriver-exporter): change version from 1.2.1 to 1.2.2 Signed-off-by: Ricardo Medeiros <ricardo.costa@treasy.com.br> * doc(stable/stackdriver-exporter): add serviceMonitor.additonalLabels in stable/stackdriver-exporter/README.md Signed-off-by: Ricardo Medeiros <ricardo.costa@treasy.com.br> * fix(stable/stackdriver-exporter): add additionalLabes in servicemonitor Signed-off-by: Ricardo Medeiros <ricardo.costa@treasy.com.br> * fix(stable/stackdriver-export): fix typo at servicemonitor.yaml Signed-off-by: Ricardo Medeiros <ricardo.costa@treasy.com.br>
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
{{- if .Values.serviceMonitor.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ template "stackdriver-exporter.name" . }}
|
|
{{- if .Values.serviceMonitor.namespace }}
|
|
namespace: {{ .Values.serviceMonitor.namespace }}
|
|
{{- end }}
|
|
labels:
|
|
chart: {{ template "stackdriver-exporter.chart" . }}
|
|
app: {{ template "stackdriver-exporter.name" . }}
|
|
release: "{{ .Release.Name }}"
|
|
heritage: "{{ .Release.Service }}"
|
|
{{- if .Values.serviceMonitor.additionalLabels }}
|
|
{{ toYaml .Values.serviceMonitor.additionalLabels | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
endpoints:
|
|
- port: http
|
|
{{- if .Values.serviceMonitor.interval }}
|
|
interval: {{ .Values.serviceMonitor.interval }}
|
|
{{- end }}
|
|
honorLabels: {{ .Values.serviceMonitor.honorLabels }}
|
|
selector:
|
|
matchLabels:
|
|
chart: {{ template "stackdriver-exporter.chart" . }}
|
|
app: {{ template "stackdriver-exporter.name" . }}
|
|
release: "{{ .Release.Name }}"
|
|
heritage: "{{ .Release.Service }}"
|
|
{{- end }}
|