Hello!
I’m new to Grafana, so if you could guide me a bit I’d very appreciate it! Here is my issue:
I configured Prometheus for my web service, then found a dashboard on Grafana.com (Asp net core - Services | Grafana Labs) and most of Prometheus metrics are shown correctly, but for CPU usage it says “No data”.
The query is:
sum (rate (container_cpu_usage_seconds_total{image!=“”, container_name=~“$app”, pod=~“$pods”}[1m])) by (pod_name)
I thought it’s because at /metrics I don’t have container_cpu_usage_seconds_total metric, instead I have process_cpu_seconds_total, but modifying the query like this:
sum (rate (process_cpu_seconds_total{app=~“$app”, pod=~“$pods”, controller=~“$controllers”}[1m])) by (pod_name)
doesn’t work as well.
If you have any ideas or at least have seen any examples of how to configure Grafana dashboards for Prometheus - please let me know!
Thank you and have a good day!