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

[bug] Why no data in CPU / Memory usage? #121

Open
k-szortyka opened this issue Sep 18, 2024 · 5 comments
Open

[bug] Why no data in CPU / Memory usage? #121

k-szortyka opened this issue Sep 18, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@k-szortyka
Copy link

Describe the bug

I don't have metrics for Namespace(s) usage on total cluster CPU/Memory in % and Memory / CPU usage by Pod,
I have changed image="" with image!="" and it not resolve the issue.

sum(rate(container_cpu_usage_seconds_total{namespace=~"$namespace", image!="", pod=~"${created_by}.*", cluster="$cluster"}[$__rate_interval])) by (pod)

image

The same with Namespace(s) usage on total cluster CPU in %
image

How to reproduce?

No response

Expected behavior

I would like to have metrics of usage CPU and memory of cluster.

Additional context

No response

@k-szortyka k-szortyka added the bug Something isn't working label Sep 18, 2024
@dotdc
Copy link
Owner

dotdc commented Sep 22, 2024

Hi @k-szortyka,
Do you have any series when looking at raw container_cpu_usage_seconds_total in Grafana explore ?
Can you give more information: Kubernetes distribution, Kubernetes version, deployment method/chart...

@k-szortyka
Copy link
Author

@dotdc I have any series but I can't filter by cluster or namespace which is crucial.
image
I use AWS EKS with the following version: 1.29 and kube-metrics 2.11.

@dotdc
Copy link
Owner

dotdc commented Sep 23, 2024

Do you have the machine_cpu_cores metric ?
Did you install node_exporter (helm chart) ?

@k-szortyka
Copy link
Author

@dotdc Yes I have but without cluster and namespace filters.

image

I don't have node_exporter. I'm using kube-state-metrics and metrics-server.

@dotdc
Copy link
Owner

dotdc commented Sep 24, 2024

@k-szortyka non-existing label shouldn't be an issue.
Can you try with node-exporter ?

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

2 participants