deploy-templates/templates/kafka-ui/kafka-ui-jvm-servicemonitor.yaml (20 lines of code) (raw):
{{- if eq .Values.global.deploymentMode "development" }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kafka-ui-jvm-{{ .Values.namespace }}
namespace: openshift-monitoring
spec:
jobLabel: app
namespaceSelector:
matchNames:
- {{ .Values.namespace }}
endpoints:
- interval: 30s
path: /metrics
scheme: http
targetPort: 9999
selector:
matchLabels:
app.kubernetes.io/name: kafka-ui
{{- end }}