diff --git a/operator/pkg/controllers/hubofhubs/manifests/kafka/podmonitor.yaml b/operator/pkg/controllers/hubofhubs/manifests/kafka/podmonitor.yaml index 1bf68c3c9..ce3732f31 100644 --- a/operator/pkg/controllers/hubofhubs/manifests/kafka/podmonitor.yaml +++ b/operator/pkg/controllers/hubofhubs/manifests/kafka/podmonitor.yaml @@ -18,6 +18,24 @@ spec: --- apiVersion: monitoring.coreos.com/v1 kind: PodMonitor +metadata: + name: entity-operator-metrics + namespace: {{.Namespace}} + labels: + app: strimzi +spec: + selector: + matchLabels: + app.kubernetes.io/name: entity-operator + namespaceSelector: + matchNames: + - {{.Namespace}} + podMetricsEndpoints: + - path: /metrics + port: healthcheck +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor metadata: name: kafka-resources-metrics namespace: {{.Namespace}}