Files
truecharts/charts/incubator/uptimerobot-prometheus/templates/servicemonitor.yaml
T
Kjeld Schouten-LebbingandGitHub 19ef571469 feat(prometheus): add some prometheus exporter-Apps (#1388)
* feat(prometheus): add some prometheus exporter-Apps

* delete notes

* little fix

* fix

* crlf and ignore

* keywords

* hmm

* no quote try

* portals

* skip tests for promcord

* hmm

* Add questions
2021-11-23 21:36:27 +01:00

25 lines
684 B
YAML

{{- if .Values.metrics.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
{{- with .Values.metrics.serviceMonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "common.labels.selectorLabels" . | nindent 6 }}
endpoints:
- port: metrics
{{- with .Values.metrics.serviceMonitor.interval }}
interval: {{ . }}
{{- end }}
{{- with .Values.metrics.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ . }}
{{- end }}
path: /metrics
{{- end }}