Grafana Dashboards for Prometheus Metrics

This is a short, last article to complete the installation of a comprehensive Monitoring and Alerting system for cloud-native applications with Prometheus. In the previous articles we looked into the concepts and the steps to setup and integrate Prometheus server, alert-manager, Prom2teams and a dead man’s switch. So now we are going to setup our Dashboards for the monitoring system using Grafana to give a graphical representation for system’s alert rules.


Why Grafana?

Grafana is an opensource, cloud-native, highly available, fast, Software as a Service(SaaS) metrics platform. If can work with several time-series data storage systems and fully compatible with Prometheus matrices. Grafana is primarily designed for analyzing and visualizing metrics such as system CPU, disk, memory and I/O utilization. But we can make use of it to create dashboards for any of our custom metrics available in Prometheus.

  • can create graphs and dashboards easily
  • fast, client-side rendering even over long ranges of time
  • work with multiple time-series data stores (eg: Graphite, Prometheus, Elasticsearch, InfluxDB, MySQL etc)

Integration of Grafana with Prometheus

You can easily startup a Grafana server by downloading the binaries for your operating system and running it even without installing.

Grafana data sources
Prometheus data source configuration
  • importing an existing template
Create dashboards
Sample Grafana Dashboard

Alerting from Grafana

You can also make use the the alerting feature provided with Grafana if your system doesn’t have an explicit alerting component. Alert rules are configured per visualization basis which mean we can configure alerts for each and every graph we create in a dashboard. But the Prometheus alert manager which we configured in the previous article is a far better alert manager with more features like alert grouping, re-alerting for unresolved etc.

Alert Configuration

Senior Software Engineer | BSc (Hons) Engineering | CIMA | Autodidact | Knowledge-Seeker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store