How To Provisioning Dashboards In Grafana via Kubernetes

Create a nice Dashboard that matches your needs

Sascha Peter Bajonczak
How-To’s
Published in
4 min readNov 30, 2022

--

Grafana is a nice handy tool, after the first setup, you will have a nice empty system that you can configure on your own. But since we are all living in a DevOps world, you must find a solution to pre-provision a Dashboard that matches your needs.

Let’s assume you are running a Kubernetes, that is provisioning some microservices. These services will provide some metrics that will be fetched by Prometheus and these will be displayed by Grafana. Now you want a nice fancy dashboard, but every time when Grafana will is or you set up another system, you get an empty dashboard. In this post, you will learn how you can deliver a predefined dashboard in the DevOps way.

The base setup

First of all, you must create a Grafana instance my Kubernetes definition looks like the following:

This will create a plain Grafana instance without saving any data into the monitoring namespace. So the next step is to…

--

--

Sascha Peter Bajonczak
How-To’s

Father, Developer,IOT passionist and urban beekeper 🍯🐝