From 465862b35326fd6bc439afd7afdd246bd6008995 Mon Sep 17 00:00:00 2001 From: DangPeng Liu Date: Thu, 25 Apr 2024 09:43:52 +0800 Subject: [PATCH] add entity-operator monitor (#898) Signed-off-by: ldpliu --- .../hubofhubs/manifests/kafka/podmonitor.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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}}