-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(example,metrics): kube-state-metrics to monitor custom resource … #10277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(example,metrics): kube-state-metrics to monitor custom resource … #10277
Conversation
…state In order to monitor the state of custom resources (CR) inside of the Kubernetes cluster, kube-state-metrics can be deployed. This describes the deployment using the prometheus-community Helm chart. Issue: strimzi#10276 Signed-off-by: Sebastian Gaiser <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I think this is a good idea. I think we should consider some additional things here:
- Do we want to document this? (I guess we have some notes on what is int he examples, so we should mention it?)
- Do we want to have some no-Helm variant of this in the examples? As we in general have a pure YAML based installation as the primary source and as many users do not use Helm, so this useful only for some users.
- Should we provide this for all custom resources and deprecated (and later remove) the state metrics provided by Strimzi CO? (this might not be a task for this PR, but it should be considered when adopting this)
- Do we want to have some System Test coverage?
CC @strimzi/maintainers
I think this would be a good idea. E.g. reconcile for a
I think this depends on how you would like to deploy the monitoring. The Flux example uses the |
Well, the Prometheus part seems to be just a custom resource that can have its own YAMl as well. I also assume that the confguration will end up in some ConfigMap or some environment variables to configure the Kube State Metrics? So that can be described or stored in separate YAMLs.
I guess a start might be to replicate what the Cluster operator does -> a metric to indicate if the resource is ready or not. That would allow us to drop it from the Cluster operator. We can improve things later as some ideas pop-out. But we can wait for this for some discussion and have others chime in with their thoughts. |
Following my thoughts ... and I am not saying I am against it but just thinking aloud:
|
@ppatierno Keep in mind that this is not removing anything at this point. It just adds metrics similar to those we never implemented in UO and TO. |
Discussed on the community call on 5.9.2024: This PR should be closed and the discussion should continue on the #10276 issue and the related proposal. Thanks for opening this topic @sebastiangaiser |
…state
In order to monitor the state of custom resources (CR) inside of the Kubernetes cluster, kube-state-metrics can be deployed. This describes the deployment using the prometheus-community Helm chart.
Issue: #10276
Type of change
Select the type of your PR
Description
In order to monitor the state of custom resources (CR) inside of the Kubernetes cluster, kube-state-metrics can be deployed. This describes the deployment using the prometheus-community Helm chart.
Checklist
Please go through this checklist and make sure all applicable tasks have been done