blob: 6bd961c0cd130e9eddf6fa1e04336fef175e8c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{- if and .Values.prometheus.enabled .Values.prometheus.additionalServiceMonitors }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: service-monitor-collectd
namespace: {{ $.Release.Namespace | quote }}
labels:
app: {{ template "prometheus-operator.name" $ }}-prometheus
{{ include "prometheus-operator.labels" $ | indent 8 }}
collector: collectd
spec:
endpoints:
- interval : 10s
path: /metrics
port: collectd-prometheus
jobLabel: collectd
selector:
matchLabels:
app: collectd
{{- end }}
|