14 April 2023 | Noor Khan
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.
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.
There are a number of features which make Prometheus the ideal choice for monitoring and alerting and they include:
“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
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:
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.
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.
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.
"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
There are many use cases for the combination of these technologies and they include:
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.
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.
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
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
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