mirror of
https://github.com/hikhvar/mqtt2prometheus.git
synced 2026-05-13 12:06:38 +00:00
21 lines
597 B
YAML
21 lines
597 B
YAML
{{- if .Values.serviceMonitor.enabled -}}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ include "helm.fullname" . }}
|
|
labels:
|
|
{{- include "helm.labels" . | nindent 4 }}
|
|
{{- with .Values.serviceMonitor.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- include "helm.selectorLabels" . | nindent 6 }}
|
|
endpoints:
|
|
- port: http
|
|
path: {{ .Values.serviceMonitor.path }}
|
|
interval: {{ .Values.serviceMonitor.interval }}
|
|
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
|
|
{{- end }}
|