-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add a Custom Resource metrics configuration file to the release artifacts #7229
Comments
/triage accepted Sounds good. Thx for working on this! |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/lifecycle frozen |
Ah, nice, would this also be rolled out via That way we can just consume it without having to do anything major manually. |
The plan was just to publish it as a release attachment. In the past we didn't want to extend clusterctl to become a general purpose kubectl apply or something similar |
Mh, but that doesn't solve the problem, or does it? 🤔 We as the end user still have to download (aka copy) that file, convert it to a configmap, apply it somehow to our clusters and configure a kube-state-metrics setup to use it. Whereas the current, development, solution is so 👌 close to being perfect. The only current problem is that it doesn't build 😅 |
Depends on what the problem is. For me one of the biggest problems we have is that we don't have enough maintainers, so maintainability is a huge concern and I'm not looking forward to maintain a monitoring stack (or a part of that) :) |
What would be the change that we have to make to get rid of your current problem? |
Some more context. It feels like everything in our repo that is somehow consumable will eventually be consumed by users. Doesn't matter if we document that we don't provide any guarantees etc.. People start relying on it, people ask for help if it doesn't work or if they have any questions about it and basically to a certain degree some expect support. The only protection we sometimes have is to try set clear expectations on what guarantees we provide and otherwise make things "un-consumable" (which we afaik didn't do in the past, just to be clear). |
I definitely understand that, but monitoring, especially for a fleet of clusters (maybe even for various customers), is essential. I wish kube-state-metrics would have an easier way to integrate these metrics, maybe like grafana does with their But as long as we need a manual configuration we either need this current setup with a custom kube-state-metrics just for this or a configmap I can just load into my existing kube-state-metrics. Both should be deployable via gitops without copying something.
Currently the only thing preventing this from working is what I've described in #9312. Right now we can't use flux, as |
I'm aware. I meant, what do we have to change to make this work? |
Ah, oh, sorry 😅 Thinking about it I also found out that flux's kustomization doesn't support these Kustomize HelmChart thingies. 😅 So even just copying the But a working solution would be to have the configuration in a configmap instead of a plain file with a configmap generator, we then could use a flux kustomization to only include that configmap. And patch our kube-state-metrics to include that file. If that is not automation-friendly enough, we could also move the plain file into it's own folder with it's own kustomization and configmap generator and we could include that. Thinking about it I think the latter is the better solution. If you're open to that I can open a PR for that. 😁 |
We mostly implemented something else, but please check if #9390 solves your problem as well. |
/priority important-longterm |
User Story
As a operator I would like to have metrics for my running Cluster API verison for day-2 operations.
Detailed Description
We recently added a first configuration for metrics for the core CAPI resources via
It would be great to add the configuration as artifact to future releases so an operator could also easily find the matching configuration when updating Cluster API.
Before doing so, we might want to ensure to generate the configuration from code as outlined in
/kind feature
The text was updated successfully, but these errors were encountered: