How to get the Resource Usage per Namespace using Rancher monitoring
Article Number: 000022206
Environment
- Rancher 2.x
- Rancher Monitoring
Procedure
- To get the resource usage (CPU/Memory) per namespace using the Rancher monitoring chart, navigate to Rancher UI → Cluster → Monitoring→ Grafana Dashboard → Kubernetes → Compute Resources → Namespace (pod).
- If the requirement is to get the namespace-aggregated dashboard, Rancher monitoring does not provide one by default. However, you can import the Grafana community dashboard to get a customized version.
- To import the community dashboard in Grafana, navigate to Grafana UI → Login using default credentials `admin/prom-operator` → navigate to Dashboards → New → Import → Enter Dashboard ID or Enter Dashboard JSON. Note : The dashboard ID and Dashboard JSON are available here
- Get Dashboard ID or JSON from [1] :
- Import Dashboard into Grafana :