Grafana Dashboards for Prometheus Metrics

Grafana

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.

  • opensource
  • 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
  • manually by defining queries for each graph
  • 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

--

--

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
Danuka Praneeth

Danuka Praneeth

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