Skip to content

Prometheus

Setting Up Prometheus and Grafana for a Patroni cluster

In today’s data-driven world, monitoring and visualizing the health and performance of your database clusters is a must. With tools like Prometheus and Grafana, you can gain valuable insights into your PostgreSQL Patroni setup, ensuring its smooth operation and proactive maintenance. In this guide, we’ll walk you through the steps of installing and configuring Prometheus and Grafana to monitor your… 

Apache Tomcat Monitoring in Prometheus without JMX

In a previous blog post, I explained how to monitor Apache Tomcat with Prometheus with help of JMX exporter. It is not always desirable to use JMX as it requires: Fortunately, it is possible to instrument a JVM directly with an additional javaagent argument. Java Agent Once we downloaded the java exporter from github repo, we simply need to add… 

Zabbix in the Middle of Prometheus and Grafana

In this blog post, I will show you how to gather metrics from a OpenTelemetry interface from a Zabbix server and how to display Zabbix data in Grafana. Why Should I do that? First, you might wonder why should you even do that? Dashboards capabilities of Zabbix are nice and evolving but is not as complete and customizable as Grafana… 

Prometheus and the AlertManager

In any monitoring tool, the question of alerting arises. Prometheus has a component dedicated to this function called the “Alertmanager”. One of the strengths of Alertmanager is its ability to evaluate and group alerts, thus avoiding false positives and waves of notifications. This is made possible by four functions of Alertmanager, which are: After this brief introduction to an alertmanager,… 

Migrating Monitoring Data from Prometheus to VictoriaMetrics

Now that we know the advantages of VictoriaMetrics over Prometheus (see my previous blog post), we have to find a way to migrate data between the two. If you have the default retention set in Prometheus (ie. 15 days), it is probably not a strong requirement to keep them in a new VictoriaMetrics setup. Nevertheless, I will detail here how… 

Prometheus vs VictoriaMetrics

As I went through many monitoring tools recently, I found that Prometheus is a de facto standard. At least from the way it is working. It is even a so strong standard that other Time Series Database (TSDB), like VictoriaMetrics, have same API interfaces. As VictoriaMetrics claims it, it is more storage and memory efficient. Avalanche of Metrics My first… 

SNMP Monitoring with Prometheus

It is not always possible to install an exporter on the server or equipment you must monitor, either because you don’t administrate that server, or it cannot run an exporter (ie. device with limited resources). For that purpose, two exporters were built to be able to get metrics and status remotely: In this blog, I will focus on configuring and… 

Monitoring Short Living Processes with Prometheus

With the way Prometheus is gathering metrics, pull, it is not possible to get metrics from short living processes like batch jobs as: In this blog, I will explain how to bypass this limitation with two possibles solutions: The Textfile Collector and push gateway. Textfile Collector Promotheus node_exporter can parse files and expose results on export page. For that, we… 

Predict the Future with Prometheus

As I am focusing on monitoring subject, I was wondering if it is possible to set alarm based on prediction instead of simple thresholds. Dynatrace has predictive anomaly detection feature, but in this blog, I want to test if on-premises solution could help on this. We will see what Prometheus is capable of. Alarm and Threshold When we set up… 

Observability vs Monitoring

Both words, observability and monitoring, are often used interchangeably and without taking care of the difference. Monitoring Monitoring is alerting based on known, predefined metrics and log patterns. Events Examples of events are: Last example threshold could even be improved to consider the partition size as 10% remaining space is obviously not the same for a 1 GB partition (100… 

How to keep your Prometheus ecosystem secure

Prometheus is a popular open-source monitoring system that helps track and alert for various applications. However, regarding security, there are some essential things to consider. Prometheus server, for instance, does not provide authentication or TLS encryption out of the box, meaning anyone accessing the server’s HTTP endpoints can access all of our time-series data. So, what solutions are available?One solution… 

Apache Tomcat Monitoring in Prometheus

To monitor Apache Tomcat, the most convenient solution is to use JMX Exporter provided by Prometheus git repository. Enable JMX Remote To enable JMX Remote, I will simply add the following line into setenv.sh file (file store in /bin of Apache Tomcat installation directory): As a check, after the restart of the service, I look for listening port 9999: I…