Monitoring Strimzi
Kafka on Strimzi with the Metrics Reporter on brokers and controllers, the operator's own metrics and kube-state-metrics for resource state, all scraped by the otel-lgtm collector, with a provisioned dashboard and checks that read each signal from Prometheus.
examples/32-monitoring-strimzi/ is a manifest overlay on the shared minikube setup in examples/_k8s: Kafka with the reporter on both node pools, the collector’s scrape configuration, kube-state-metrics with a small custom-resource configuration, a dashboard and the order-service and notification-service. It accompanies Monitoring Strimzi.
It uses kustomize through kubectl, Strimzi, Kafka, CloudNativePG, the LGTM image, kube-state-metrics and the unchanged order-service and notification-service images.
cd examples/32-monitoring-strimzi
./verify.sh
What to observe
- Pods. Both node pools are scrape targets, bytes in rises for
edp.orders.placedafter ten orders, and exactly one controller is active. - The operator. Its reconciliation counter is above zero and its pod is a scrape target.
- Resources. The Kafka resource and every KafkaTopic read Ready 1; a topic whose partitions are raised in Kafka reads Ready 0 with reason
NotSupported. - No restart. Narrowing the reporter’s
allowListchanges the endpoint and leaves the pods as they were.
Infrastructure
The cluster, PostgreSQL and LGTM bases of examples/_k8s, the monitoring base, the reporter component, one KafkaTopic, and the order-service and notification-service deployments.