feat: add serviceMonitor in the helm chart (#485)
This commit is contained in:
parent
666d4bbb8a
commit
2ba9c11413
|
@ -0,0 +1,16 @@
|
|||
{{- if .Values.serviceMonitor.enabled }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
name: {{ include "api-testing.fullname" . }}-servicemonitor
|
||||
labels:
|
||||
{{- include "api-testing.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "api-testing.selectorLabels" . | nindent 6 }}
|
||||
endpoints:
|
||||
- port: http
|
||||
interval: {{ .Values.serviceMonitor.interval }}
|
||||
path: /metrics
|
||||
{{- end }}
|
|
@ -109,3 +109,7 @@ affinity: {}
|
|||
|
||||
mongodb:
|
||||
enabled: false
|
||||
|
||||
serviceMonitor:
|
||||
enabled: false
|
||||
interval: 15s
|
||||
|
|
Loading…
Reference in New Issue