File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {{- if .Values.podMonitor.enabled }}
2+ apiVersion : monitoring.coreos.com/v1
3+ kind : PodMonitor
4+ metadata :
5+ name : {{ .Release.Name }}-podmonitor
6+ namespace : {{ .Release.Namespace }}
7+ labels :
8+ {{- include "dolos.labels" . | nindent 4 }}
9+ {{- with .Values.podMonitor.labels }}
10+ {{- toYaml . | nindent 4 }}
11+ {{- end }}
12+ spec :
13+ selector :
14+ matchLabels : {{- include "dolos.selectorLabels" . | nindent 6 }}
15+ {{- with .Values.podMonitor.podTargetLabels }}
16+ podTargetLabels :
17+ {{- toYaml . | nindent 4 }}
18+ {{- end }}
19+ podMetricsEndpoints :
20+ {{- if .Values.podMonitor.podMetricsEndpoints }}
21+ {{- toYaml .Values.podMonitor.podMetricsEndpoints | nindent 4 }}
22+ {{- else }}
23+ - port : {{ .Values.podMonitor.port | default "minikupo" }}
24+ path : {{ .Values.podMonitor.path | default "/health" }}
25+ {{- with .Values.podMonitor.interval }}
26+ interval : {{ . }}
27+ {{- end }}
28+ {{- with .Values.podMonitor.scrapeTimeout }}
29+ scrapeTimeout : {{ . }}
30+ {{- end }}
31+ {{- with .Values.podMonitor.scheme }}
32+ scheme : {{ . }}
33+ {{- end }}
34+ honorLabels : {{ .Values.podMonitor.honorLabels | default false }}
35+ {{- if .Values.podMonitor.headers }}
36+ headers :
37+ {{- toYaml .Values.podMonitor.headers | nindent 8 }}
38+ {{- else }}
39+ headers :
40+ Accept : text/plain
41+ {{- end }}
42+ {{- with .Values.podMonitor.relabelings }}
43+ relabelings :
44+ {{- toYaml . | nindent 8 }}
45+ {{- end }}
46+ {{- with .Values.podMonitor.metricRelabelings }}
47+ metricRelabelings :
48+ {{- toYaml . | nindent 8 }}
49+ {{- end }}
50+ {{- end }}
51+ {{- end }}
Original file line number Diff line number Diff line change @@ -48,6 +48,31 @@ storage:
4848 size : 50Gi
4949 # storageClassName: gp
5050
51+ # Prometheus Operator PodMonitor (requires monitoring.coreos.com CRDs)
52+ podMonitor :
53+ enabled : false
54+ # Extra labels added to the PodMonitor metadata (e.g. release: kube-prometheus-stack)
55+ labels : {}
56+ # Pod labels to copy onto the scraped target
57+ podTargetLabels : []
58+ # Named container port to scrape. Must match a port name on the dolos pod.
59+ # The MiniKupo health endpoint is exposed on the `minikupo` port (1442).
60+ port : minikupo
61+ # Scrape path. Dolos MiniKupo exposes a plaintext /health endpoint.
62+ path : /health
63+ # interval: 30s
64+ # scrapeTimeout: 10s
65+ # scheme: http
66+ honorLabels : false
67+ # Request headers sent on each scrape. MiniKupo /health requires Accept: text/plain.
68+ headers :
69+ Accept : text/plain
70+ # Optional Prometheus relabel configs
71+ relabelings : []
72+ metricRelabelings : []
73+ # If set, fully overrides the default podMetricsEndpoints generated above.
74+ podMetricsEndpoints : []
75+
5176tolerations : []
5277
5378affinity : {}
You can’t perform that action at this time.
0 commit comments