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] Issue with Metric to fetch k8's cluster nodes memory usage #4802

Open
jahnavi0912 opened this issue Aug 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jahnavi0912
Copy link

jahnavi0912 commented Aug 20, 2024

Describe the bug a clear and concise description of what the bug is.

We are configuring metrics in Grafana using Prometheus as a data source and facing issues with getting the exact values of Kubernetes node memory usage. We have configured a custom metric in Grafana to fetch the memory usage of nodes in the cluster, but the values do not match when compared with the data obtained directly from the cluster.

We are using the following command to fetch memory and CPU details of nodes in the cluster:
oc adm top nodes

The metric we are using in Grafana to fetch the memory status is:
node_memory_MemTotal_bytes - node_memory_MemFree_bytes - node_memory_Inactive_file_bytes - node_memory_Buffers_bytes - node_memory_Slab_bytes

Can someone provide a resolution or suggest the correct metric to accurately fetch the memory details of nodes in Grafana?

What's your helm version?

3.14.4

What's your kubectl version?

1.29.2

Which chart?

kube-prometheus-stack

What's the chart version?

61.6.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.

node_memory_MemTotal_bytes - node_memory_MemFree_bytes - node_memory_Inactive_file_bytes - node_memory_Buffers_bytes - node_memory_Slab_bytes

Anything else we need to know?

No response

@jahnavi0912 jahnavi0912 added the bug Something isn't working label Aug 20, 2024
@zeritti zeritti changed the title Issue with Metric to fetch k8's cluster nodes memory usage [kube-prometheus-stack] Issue with Metric to fetch k8's cluster nodes memory usage Aug 20, 2024
@sba-ops
Copy link

sba-ops commented Aug 22, 2024

I'm experiencing the same issues with the helm chart version 62.2.1.

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