Driving Ardent Innovation Series: Prometheus and Grafana

14 April 2023 | Noor Khan

Driving Ardent Innovation Series Prometheus and Grafana (5)

In our new series ‘Driving Ardent Innovation’ we cover some of the tech hacks, discoveries and POCS our R&D team make. We are committed to continuous innovation so we support and encourage our R&D teams to explore and learn technologies that will enable us to better serve our clients. In this edition, we will be looking at two powerful SRE and DevOps technologies - Prometheus and Grafana project led by Salim Khan, Senior Data Lead.

Prometheus and Grafana are two powerful technologies which can be leveraged for intelligent, automated monitoring and alerting of applications and data. We will dive into our findings.

Driving Ardent Innovation Series: Prometheus and Grafana

What is Prometheus?

Prometheus is an open-source monitoring and alerting system which was created by SoundCloud in 2012. It is one of the most popular technologies on the market and has a market share of 8.15% according to Datanyze. The software collects pre-defined metrics from multiple systems including applications, databases and infrastructure and they are then stored in a time series database.

Prometheus features

There are a number of features which make Prometheus the ideal choice for monitoring and alerting and they include:

  • Multi-dimension data model – With the ability to connect to a wide variety of data sources.
  • Use of PromQL – Powerful query language which is similar to SQL and is used for data collection and feeding data into Grafana for visualisation.
  • Pull-based architecture – indicators are obtained actively as opposed to systems pushing indicators
  • Alerting – With Alert Manager, alerts are sent to preferred channels such as email, PagerDuty or OpsGenie.

“Prometheus is one of the leading technologies in the DevOps space and is widely used across the industry. I think what makes it so popular is the high speeds it delivers data collection as well as the wide variety of data sources it can connect to. I have found that there are a lot of highly skilled DevOps engineers who are proficient in Prometheus and adopt it as part of their DevOps tech stack” – Salim Khan, Senior Data Lead

What is Grafana?

Grafana is an open-source data visualisation software which is often integrated with Prometheus for powerful monitoring, alerting and reporting solutions. Users can query, visualize and alert on metrics and logs as well as define alert rules based on the data collected. Grafana is a powerful technology which can be connected with a wide range of data sources, and it can send alerts to multiple channels such as Slack, PagerDuty and email.

Grafana features:

  • Customizable dashboards – these can be customised based on specific requirements and needs
  • Simple visuals – Easy to understand, user-friendly visualisation
  • Prometheus integration – Easily integrate with Prometheus

Prometheus and Grafana POC (Proof of Concept)

To put these technologies to the test, Salim set up infrastructure monitoring of the AWS EC2 machine which collects data on a real-time basis. To start with Prometheus, Exporters and Grafana Server were installed to collect the data from the EC2 machine.

Driving Ardent Innovation Series Prometheus and Grafana

With Prometheus, you are provided with a local host UI, which is where you can see the data being monitored, and set up alerts, rules, targets and more.

Prometheus can handle large volumes of data which makes it a remarkable technology.

It is then a simple case of integrating Prometheus with Grafana to start visualising the data. With the ability to create dashboards, and customise existing templates, Grafana is considered easy to use. With your customised dashboard, you can then visualise the performance of the EC2 machine in real-time. Some of the metrics we measure and monitor are CPU utilization, RAM used, Sys Load, and SWAP used.  

Grafana dashboard connected to Prometheus

Additionally, we have created alerts to be fired when the CPU surpasses the 80% threshold. This alert is then communicated via multiple channels such as Slack and email.

We created a specific ‘Alerts’ channel for the alerts, keeping the communication clear and visible to all relevant parties.  

Alerting Slack channel integrated with Prometheus

"Prometheus is usually most often used for data collection, whereas Grafana is better suited to data visualisation. Both together, provide a powerful data monitoring and visualisation solution”.

Salim Khan, Senior Data Lead

Prometheus and Grafana use cases

There are many use cases for the combination of these technologies and they include:

Driving Ardent Innovation Series: Prometheus and Grafana

Cloud-native applications

Prometheus is well-suited for monitoring cloud-native applications that are deployed using container orchestration platforms such as Kubernetes or Docker Swarm. It provides out-of-the-box support for Kubernetes and has several exporters that make it easy to monitor various components of the platform.

Microservices architecture

With its support for multi-dimensional data and service discovery, Prometheus is an excellent choice for monitoring microservices architectures. It allows users to monitor individual services as well as the overall health of the system.

Infrastructure monitoring

Prometheus can be used to monitor various components of the infrastructure, including servers, databases, and network devices. It has several exporters that make it easy to monitor different types of infrastructure components.

Application performance monitoring

Prometheus can be used to monitor the performance of applications by collecting metrics such as request latency, error rate, and throughput. It can help identify performance bottlenecks and troubleshoot issues quickly.

DevOps monitoring

With its support for alerting and integrations with other tools, Prometheus is an excellent choice for monitoring DevOps workflows. It can help identify issues early in the development cycle and improve the overall reliability of the system.

Ardent, committed to continuous innovation

We know technology does not stay still so we do not either. We are committed to keeping on moving with continuous investment in innovation and evolution so we encourage and support our people to explorw new technologies to continuously learn and improve. R&D is at the forefront of the Ardent way. Explore how our clients are succeeding with innovative technologies:

If you are looking for a DevOps solution with a provider that is committed to continuously bringing you the best in the industry, get in touch to find out more or to get started.


Ardent Insights

Overcoming Data Administration Challenges and Strategies for Effective Data Management

Businesses face significant challenges to continuously manage and optimise their databases, extract valuable information from them, and then to share and report the insights gained from ongoing analysis of the data. As data continues to grow exponentially, they must address key issues to unlock the full potential of their data asset across the whole business. [...]

Read More... from Driving Ardent Innovation Series: Prometheus and Grafana

Are you considering AI adoption? We summarise our learnings, do’s and don’ts from our engagements with leading clients.

How Ardent can help you prepare your data for AI success Data is at the core of any business striving to adopt AI. It has become the lifeblood of enterprises, powering insights and innovations that drive better decision making and competitive advantages. As the amount of data generated proliferates across many sectors, the allure of [...]

Read More... from Driving Ardent Innovation Series: Prometheus and Grafana

Why the Market Research sector is taking note of Databricks Data Lakehouse.

Overcoming Market Research Challenges For Market Research agencies, Organisations and Brands exploring insights across markets and customers, the traditional research model of bidding for a blend of large-scale qualitative and quantitative data collection processes is losing appeal to a more value-driven, granular, real-time targeted approach to understanding consumer behaviour, more regular insights engagement and more [...]

Read More... from Driving Ardent Innovation Series: Prometheus and Grafana