strimzi-kafka-operator
strimzi-kafka-operator copied to clipboard
[Enhancement]: Monitoring of custom resources
Related problem
In https://github.com/strimzi/strimzi-kafka-operator/issues/9802 there was a discussion about how to monitor the state of a custom resources (CR) like KafkaTopic
, KafkaUser
, ... .
Suggested solution
There was a suggestion to use kube-state-metrics (ksm) to monitor the state of each CR. For deploying the kube-state-metrics
, personally I would recommend using the kube-state-metrics Helm chart which is already part of the kube-prometheus-stack (via a sub-chart).
Using ksm relies on the status object of a Kubernetes resource.
Alternatives
No response
Additional context
Flux also handle this via kube-state-metrics
.:
Flux documentation: https://fluxcd.io/flux/monitoring/custom-metrics/
Flux example repository: https://github.com/fluxcd/flux2-monitoring-example