All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
21 lines
668 B
YAML
21 lines
668 B
YAML
{{- if .Values.monitoring.serviceMonitor.enabled }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ include "armature.fullname" . }}
|
|
labels:
|
|
{{- include "armature.labels" . | nindent 4 }}
|
|
{{- with .Values.monitoring.serviceMonitor.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- include "armature.selectorLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: backend
|
|
endpoints:
|
|
- port: http
|
|
path: {{ .Values.monitoring.serviceMonitor.path | default "/metrics" }}
|
|
interval: {{ .Values.monitoring.serviceMonitor.interval | default "30s" }}
|
|
{{- end }}
|