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

Are you ready to take the lead in driving digital transformation?

Are you ready to take the lead in driving digital transformation?

Digital transformation is the process of modernizing and digitating business processes with technology that can offer a plethora of benefits including reducing long-term costs, improving productivity and streamlining processes. Despite the benefits, research by McKinsey & Company has found that around 70% of digital transformation projects fail, largely down to employee resistance. If you are [...]

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

Stateful vs Stateless

Stateful VS Stateless – What’s right for your application?

Protocols and guidelines are at the heart of data engineering and application development, and the data which is sent using network protocols is broadly divided into stateful vs stateless structures – these rules govern how the data has been formatted, how it sent, and how it is received by other devices (such as endpoints, routers, [...]

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

Getting data observability done right - Is Monte Carlo the tool for you (1)

Getting data observability done right – Is Monte Carlo the tool for you?

Data observability is all about the ability to understand, diagnose, and manage the health of your data across multiple tools and throughout the entire lifecycle of the data. Ensuring that you have the right operational monitoring and support to provide 24/7 peace of mind is critical to building and growing your company. [...]

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