
Modify the deployment to include the modified dashboard Note that you will likely have multiple references to the datasource parameter in your dashboard.json file.
#Grafana dashboard upgrade#
Upgrade your helm release and watch the magic happen.Modify the Grafana deployment to include the modified dashboard.Prepare your dashboard for importing (or “template” it).So, if we’re using Kube-Prometheus to deploy Grafana, and we want to automatically import a custom dashboard to it, how do we go about it? Kubectl create ns monitoringgit clone repo add coreos dependency buildcdchartstar-zxvf grafana-0.0.37.tgzrmgrafana-0.0.37.tgzcd././.helm install-name prometheus-operator -namespace monitoring helm/prometheus-operator/helm install-name kube-prometheus -namespace monitoring helm/kube-prometheus/ Problem Statement
#Grafana dashboard install#
Run the below commands against your k8s cluster to install Prometheus operator on it:
#Grafana dashboard series#
Since each of these 3 can be developed into a blog post (or series of…) on its own, I won’t go into too many details about them. We decided to deploy Prometheus Operator and Kube-Prometheus using helm. We are working in a Kubernetes (k8s) environment, then we proceeded to choose a monitoring solution. It will visualize your collected metrics and present them in a graphical way (line charts, histograms, gauges, tables, etc.) As an open-source application, you can deploy it in many ways (you can read about some of the options here) Grafana is an “open platform for beautiful analytics and monitoring”. While you have the option to manually import a dashboard once Grafana is up and running, we wanted to automate the process so we can keep Grafana as stateless as possible and ease the administration overhead when we upgrade or deploy it across different environments.īefore we dive into the “how-to”, I want to take a minute to describe the environment we’re going to work on, since it’s crucial to our automation process.


Once deployed, we wanted to automate the process of importing various Grafana dashboards into the application. We are running a Kubernetes cluster, so we decided to deploy Prometheus & Grafana as our monitoring solution. In a recent project I did for one of my customers, we wanted to gain insight on our application.
