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

Popular graphana dashboards show no data for "Pods Memory usage" and "Pods CPU usage" #1695

Closed
surfingjoe opened this issue Mar 22, 2022 Discussed in #1694 · 21 comments
Closed
Labels

Comments

@surfingjoe
Copy link

Discussed in #1694

Originally posted by surfingjoe March 21, 2022
Running bare-metal K8s with flannel network and MetalLB as Load Balancer.
Cloned https://github.com/prometheus-operator/kube-prometheus.git just a few days ago. Created "monitoring" namespace. Performed Kubectl apply for manifests/setup, waited till all pods are up, then applied manifests/

Instead of port forwarding, I patched each service to be: "Type" load-balancer considering that I'm using MetalLB.

Everything is operational. Can successfully deploy containers with services exposed externally by the load balancer MetalLB. All is well in the world. Can open Prometheus port 9090 & Graphana port 3000 externally from a browser and everything seems operational. Graphana is seeing Prometheus data, and community dashboards are seeing some of the Prometheus data.

Import popular community dashboards like Community dashboard number 315 for example. Oops, the dashboard reports "No Data" for PODS memory and CPU usage, but Graphana can see Cluster Memory & CPU usage. The dashboard can see Network I/O pressure, but "No data" for Pods network I/O.

As I'm a newbie to Graphana, I'm hoping someone wiser than me can help :)

@MaximilianMeister
Copy link

Same issue here, it seems that some metrics referenced from the dashboard queries like node_namespace_pod_container are not available/exported by the metrics-server

@paulfantom
Copy link
Member

There is no metric called node_namespace_pod_container. If you mean namespace_pod_container:container_cpu_usage_seconds_total:sum_rate then it was changed to namespace_pod_container:container_cpu_usage_seconds_total:sum_irate in https://github.com/kubernetes-monitoring/kubernetes-mixin. Although it might have been a mistake as per kubernetes-monitoring/kubernetes-mixin#679. Feel free to contribute to that project as all changes from there are synced into kube-prometheus automatically.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 29, 2022
@cguertin14
Copy link

+1 on this, cpu+memory and other metrics are not showing in the provided grafana dashboards

@github-actions github-actions bot removed the stale label Jul 12, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 10, 2022
@jehutyy
Copy link

jehutyy commented Dec 6, 2022

+1 issue still there

@fguiet
Copy link

fguiet commented Dec 18, 2022

+1 issue still here as well (Kubernetes deployed with Rancher)

# Stack deployed
prometheus-stack                monitoring-ns   10              2022-12-09 12:41:56.026097892 +0100 CET deployed        kube-prometheus-stack-42.2.0            0.60.1

image

@greg-peters
Copy link

@fguiet, edit the panel and remove name=~"^k8s_.*", from all the panels that aren't showing data. Your current settings are filtering out the view.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 15, 2023
@willzhang
Copy link

same here, kuernetes v1.25.6 installl with kubeadm , kube-prometheu-stack v0.63.0 install with helm

image

@github-actions github-actions bot removed the stale label May 18, 2023
@DolceParadise
Copy link

Same here. Number of replicas are correctly reflected in and shown in graph but there N/A for pod cluster usage

Screenshot 2023-05-30 at 3 15 39 PM

@michaelfresco
Copy link

michaelfresco commented Jun 9, 2023

same here, kuernetes v1.25.6 installl with kubeadm , kube-prometheu-stack v0.63.0 install with helm

image

To fix this, I used the prometheus-community/kube-prometheus-stack, but with custom values.yaml;

nodeExporter:
  enabled: true
prometheus-node-exporter:
  prometheus:
    monitor:
      enabled: true

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 9, 2023
@prionkor
Copy link

Is there any fix for the issue? or any dashboard id out there that I can import. I want to see pod resource uses over time for a deployment.

@github-actions github-actions bot removed the stale label Dec 1, 2023
@eddyzags
Copy link

+1 issue still there

@comminutus
Copy link

Same problem for me

@MahdadGhasemian
Copy link

MahdadGhasemian commented Jan 29, 2024

@fguiet, edit the panel and remove name=~"^k8s_.*", from all the panels that aren't showing data. Your current settings are filtering out the view.

Thanks. It worked.

Copy link

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 30, 2024
@oferdiari
Copy link

i all panel that not working ,just edit them and remove all this: "image!="",name=~"^k8s_.*","
it worked for me..

@github-actions github-actions bot removed the stale label Jun 6, 2024
Copy link

github-actions bot commented Aug 5, 2024

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 5, 2024
Copy link

github-actions bot commented Dec 3, 2024

This issue was closed because it has not had any activity in the last 120 days. Please reopen if you feel this is still valid.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests