Lab 11.3: Importing Predefined Grafana Dashboard Templates
Create Kubernetes Dashboards on Grafana
Creating a Kubernetes dashboard from the Grafana template is straightforward. Numerous prebuilt Grafana templates are available for Kubernetes, covering various aspects such as ingress controllers, volumes, API servers, Prometheus metrics, and more.
To explore available Grafana templates for Kubernetes monitoring, refer to Grafana templates for Kubernetes monitoring.
Follow these steps to set up a Grafana dashboard for monitoring Kubernetes deployments:
Step 1: Obtain the Template ID from Grafana Public Templates
Step 2: Navigate to Grafana Dashboard and Select the Import Option
Step 3: Enter the Dashboard ID obtained in Step 1
Step 4: Grafana will automatically fetch the template from the Grafana website. Adjust values as needed and click "Import."
Note: If you are behind a corporate firewall and cannot download the template using the ID, you can download the template JSON. Paste the JSON in the text box to import it.
You should now see the dashboard immediately.
When using Grafana with Prometheus, it utilizes PromQL to query metrics from Prometheus. You can leverage the same PromQL Prometheus queries to construct custom dashboards in Grafana.