You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to monitor a K3s cluster using Grafana?
#12457
I want to monitor a K3s cluster using Grafana + Prometheus. Currently, Prometheus can collect K3s cluster information normally, and Grafana is also connected to Prometheus normally. However, several dashboards loaded from "https://grafana.com/grafana/dashboards/" cannot display data properly. I checked the dashboard configurations and found that the metrics specified in the dashboards do not match those in the actual K3s cluster. How can I solve this problem?
k3s version v1.32.3+k3s1 (079ffa8)
go version go1.23.6
The environment is offline and cannot connect to the Internet.
I checked the configuration file provided in this link and found that one of the metrics is node_cpu_seconds_total, but this metric does not exist in the K3s cluster.
I've tested other K3s-related dashboard configurations from "https://grafana.com/grafana/dashboards/" following the steps above, but none of them work. Could there be an issue with my setup that's causing these official Grafana dashboards to fail?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I want to monitor a K3s cluster using Grafana + Prometheus. Currently, Prometheus can collect K3s cluster information normally, and Grafana is also connected to Prometheus normally. However, several dashboards loaded from "https://grafana.com/grafana/dashboards/" cannot display data properly. I checked the dashboard configurations and found that the metrics specified in the dashboards do not match those in the actual K3s cluster. How can I solve this problem?
k3s version v1.32.3+k3s1 (079ffa8)
go version go1.23.6
The environment is offline and cannot connect to the Internet.
The Grafana resource manifest is as follows.
The Prometheus resource manifest is as follows.
prometheus.yml
I believe that Prometheus has successfully connected to the K3s cluster and collected monitoring metrics through the following screenshots.

I believe Grafana is properly connected to Prometheus through the following screenshots.
I used the configuration from the link "https://grafana.com/grafana/dashboards/16450-kubernetes-views-k3s-cluster/", but it didn't display any data.
I checked the configuration file provided in this link and found that one of the metrics is
node_cpu_seconds_total, but this metric does not exist in the K3s cluster.I've tested other K3s-related dashboard configurations from "https://grafana.com/grafana/dashboards/" following the steps above, but none of them work. Could there be an issue with my setup that's causing these official Grafana dashboards to fail?
All reactions