Closed nobuto-m closed 3 months ago
_total
or similar.workqueue_depth
is indeed not a counter, but rather a gauge.rate
function shouldn't be used on gauges (ref), because you don't want the "counter reset" functionality and other side effects related to assumed monotonicity. You'd probably want to use deriv
instead. You can experiment with modifying the expression in the "Explore" tab. Then update the builtin dashboard accordingly.@nobuto-m did you figure this out? From what we can see, this is a kubernetes dashboard that may not be using the typical naming convention.
@neoaggelos do you know who owns this dashboard? Looks like its something that you folks own
I have the same issue with Ingress NGINX Dashboard:
Query:
sum(rate(nginx_ingress_controller_requests{controller_pod=~"$controller",controller_class=~"$controller_class",namespace=~"$namespace",status!~"[4-5].*"}[2m])) / sum(rate(nginx_ingress_controller_requests{controller_pod=~"$controller",controller_class=~"$controller_class",namespace=~"$namespace"}[2m]))
nginx_ingress_controller_requests
is counter as described here.
This will need to be addressed in the dashboard which is owned by the Microk8s charm. Perhaps you can open an issue there.
Bug Description
I started seeing the following new warning in Grafana dashboard when using edge channels for COS. Not sure where to fix at this point and I'm collecting information.
ref: https://github.com/prometheus/prometheus/issues/12945
To Reproduce
juju deploy --channel 1.28/stable microk8s
juju deploy --channel latest/edge --trust cos-lite
kubernetes-controller-manage
dashboard in Grafana and look at the "Work Queue Depth" panelEnvironment
[reproducible]
[NOT reproducible]
Relevant log output
Additional context
No response