We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 666d4bb commit 2ba9c11Copy full SHA for 2ba9c11
helm/api-testing/templates/servicemonitor.yaml
@@ -0,0 +1,16 @@
1
+{{- if .Values.serviceMonitor.enabled }}
2
+apiVersion: monitoring.coreos.com/v1
3
+kind: ServiceMonitor
4
+metadata:
5
+ name: {{ include "api-testing.fullname" . }}-servicemonitor
6
+ labels:
7
+ {{- include "api-testing.labels" . | nindent 4 }}
8
+spec:
9
+ selector:
10
+ matchLabels:
11
+ {{- include "api-testing.selectorLabels" . | nindent 6 }}
12
+ endpoints:
13
+ - port: http
14
+ interval: {{ .Values.serviceMonitor.interval }}
15
+ path: /metrics
16
+{{- end }}
helm/api-testing/values.yaml
@@ -109,3 +109,7 @@ affinity: {}
109
110
mongodb:
111
enabled: false
112
+
113
+serviceMonitor:
114
+ enabled: false
115
+ interval: 15s
0 commit comments