-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Stacking of work queue metrics in grafana dashboard is confusing #4000
Comments
Hi @Kavinjsir, I think you are the best one to help us and give a look on this one. WDYT? |
Can you add a screen shot over how it would be with the change proposed? Also, feel free to open a PR with. |
/assign |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/assign |
What broke? What's expected?
In the Controller Runtime Metrics dashboard, the 'Seconds for items stay in queue (before being requested)' panel shows the different percentiles for all resources being reconciled.
However, the graph is stacking all the values together (see screenshot), which can be very confusing at first glance.
Particularly if your controller has multiple resources it is reconciling.
In this example, I was wondering why some items were longer than 40 seconds in the queue before being requested, but that wasn't actually the case.
I think it would be clearer to have no stacking in this panel. I don't see what the use case for having all the values stacked would be.
If there's agreement on having no stacking, I can make the change.
I believe it's this json here that would need to change.
https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugins/optional/grafana/v1alpha/scaffolds/internal/templates/runtime.go#L443-L445
Reproducing this issue
Load the Controller Runtime Metrics into grafana and visualise metrics for a controller that's reconciling some resource.
See that the values are stacked in the panel mentioned.
KubeBuilder (CLI) Version
3.14.2
PROJECT version
3
Plugin versions
Other versions
go version
go version go1.21.7 darwin/amd64
sigs.k8s.io/controller-runtime v0.16.3¬
kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.2", GitCommit:"fc04e732bb3e7198d2fa44efa5457c7c6f8c0f5b", GitTreeState:"clean", BuildDate:"2023-02-22T13:39:03Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.7
Server Version: version.Info{Major:"1", Minor:"29", GitVersion:"v1.29.2", GitCommit:"4b8e819355d791d96b7e9d9efe4cbafae2311c88", GitTreeState:"clean", BuildDate:"2024-02-14T22:25:42Z", GoVersion:"go1.21.7", Compiler:"gc", Platform:"linux/arm64"}
WARNING: version difference between client (1.26) and server (1.29) exceeds the supported minor version skew of +/-1
Extra Labels
No response
The text was updated successfully, but these errors were encountered: