Skip to content
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

[kube-prometheus-stack] Kubernetes / Kubelet grafana dashboard - running containers metrics issue #5032

Open
TomaszSienko opened this issue Nov 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TomaszSienko
Copy link

TomaszSienko commented Nov 30, 2024

Hi,
I've noticed Kubernetes / Kubelet grafana dashboard is not correctly showing the sum of running containers. The Running Containers panel using query:

sum(kubelet_running_containers{cluster="$cluster", job="kubelet", metrics_path="/metrics", instance=~"$instance"})

Which is not showing the correct amount of running containers.

The correct one should be:

sum(kubelet_running_containers{cluster="$cluster", job="kubelet", metrics_path="/metrics", instance=~"$instance", container_state="running"})

So it should also include the container_state="running" parameter.

What's your helm version?

v3.15.1

What's your kubectl version?

v1.30.1

Which chart?

prometheus-community/kube-prometheus-stack

What's the chart version?

66.3.0

What happened?

No response

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

sum(kubelet_running_containers{cluster="$cluster", job="kubelet", metrics_path="/metrics", instance=~"$instance", container_state="running"})

Anything else we need to know?

No response

@TomaszSienko TomaszSienko added the bug Something isn't working label Nov 30, 2024
@zeritti zeritti changed the title [kube prometeheus stack] Kubernetes / Kubelet grafana dashboard - running containeres metrics issue [kube-prometheus-stack] Kubernetes / Kubelet grafana dashboard - running containers metrics issue Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant