forked from SeleniumHQ/docker-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitoring-pod-monitor.yaml
More file actions
33 lines (33 loc) · 1.23 KB
/
monitoring-pod-monitor.yaml
File metadata and controls
33 lines (33 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{- if and (eq (include "seleniumGrid.monitoring.enabled" $) "true") .Values.monitoring.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
namespace: {{ .Values.monitoring.podMonitor.namespace | default .Release.Namespace }}
{{- with .Values.monitoring.podMonitor.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "seleniumGrid.commonLabels" $ | nindent 4 }}
{{- with .Values.monitoring.podMonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
app.kubernetes.io/name: {{ template "seleniumGrid.monitoring.exporter.fullname" $ }}
podMetricsEndpoints:
- port: metrics
path: {{ .Values.monitoring.podMonitor.path }}
interval: {{ .Values.monitoring.podMonitor.interval }}
scrapeTimeout: {{ .Values.monitoring.podMonitor.scrapeTimeout }}
{{- with .Values.monitoring.podMonitor.relabelings }}
relabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.monitoring.podMonitor.metricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}