Blogs
Blogs
Prometheus Anomaly detection: Z-Score in PromQL
Monitoring HTTP request rates is one of the most basic yet essential tasks in observability. A sudden spike might indicate a traffic surge or even a DDoS attack, while a sudden drop could signal a backend failure. Static thresholds work, but they often miss subtle patterns or raise too many false alarms. A better way is to use statistical anomaly detection—specifically Z-score based alerts in Prometheus. In this post, we’ll walk through how to set up a Z-score PromQL alert to detect anomalies in HTTP request rates using only Prometheus and native PromQL.
A Full Guide to Monitoring Strategies for Enterprises
Monitoring, stop being blind! After 3 years working in the monitoring team at the one of the biggest videogames company, I will unveil some secrets and strategies of monitoring for enterprises. These strategies can be applied to small or big companies depending on their context and uses. But what is monitoring? Monitoring is the fact of collecting information about an entity (application, machine, URL…) on a frequent basis. In general, this raw data is passed through visualization apps to give a visibility on the enterprise entities.
Vmalert: Revamp your Prometheus alert with microservices
Vmalert: the prometheus alerting microservice While collecting metrics is important for monitoring, the real end goal is not visualizing the data. The most critical goal of metrics is to create alerts in case of bad behaviors or incidents. In the Prometheus world, prometheus itself generates alerts based on the metrics collected. Let’s discover another product of VictoriaMetrics called Vmalert. To be honest, Vmalert is not a revolutionary product, exactly like Vmagent, but its strength is the ability to do 1 role: handling alerts with the minimum resources.

How to send duplicate RemoteWrite metrics
When working with metrics, you may want to send the metrics you’ve collected to 2 different prometheus instances for backup. Despite that a feature in Prometheus allows you send the metrics received to another prometheus, it’s not recommended to do that when working with high amounts of metrics. Indeed, Prometheus consumes a lot of resources to do the remotewrite and this may reduce its capability to perform well. But other solution exists : lightweight, simple and works perfectly.

Esp32 + 1$ DHT22 temperature sensor
ESPHome is a powerful framework for building IoT devices using ESP8266, ESP32, and other microcontrollers. It allows you to easily configure and control your devices from a web interface. In this tutorial, we will learn how to connect the DHT22 sensor to the ESP32 board using ESPHome. Let’s get started. Step 1: Install ESPHome Before we begin, make sure you have installed ESPHome on your computer. Follow the instructions on the ESPHome website to install ESPHome.

Top 10 DIY Smarthome Projects You Wish You Know Them Before.
Smart home technology has become increasingly popular in recent years, with a wide range of devices available on the market. However, many people are also interested in DIY smart home projects using platforms like ESP32 or Tuya. In this article, we will explore 10 DIY smart home projects using ESP32 or Tuya. 1. Smart Home Security System You can create your own smart home security system using ESP32 and sensors such as door sensors, motion sensors, and window sensors.

Zigbee2mqtt : Aqara temperature - Homeassistant without Xiaomi Gateway? Here is how !
If you are reading this article, you have already heard about zigbee. But also, maybe you don’t understand it, comparing to wifi or bluetooth. And maybe, you are looking for a cheap solution to connect to your smart devices using the protocol zigbee. I have done a bunch of tests and will share with you how to connect and read your data through zigbee using CC2531 usb dongle and home assistant.

Grafana 9 Alert : How to customize alert message
Grafana added the alert feature recently and it’s now released with the Grafana 9. That’s a great feature for the people who don’t want to set a proper alermanager and to configure it. I’ve took the time to explore the alert and play with it. Let’s see how it works! Deploy grafana and prometheus With the docker-compose file below run the grafana and prometheus docker-compose up -d. # docker-compose.yml file version: "3.
Go strings manipulation: Optimize performance x100
Optimization, faster, better… these words are always what we search for on google to make our programs more performant. In a recent project I’ve worked on, the optimization was the main focus. While string manipulation could not be your issue if your program process few words, my project was processing millions of strings per second. Thus, each nanosecond counts! The tips below are the fruit of 2 months of work. These tips may not all fit your needs, test them all and choose what fits your code more.

Cheap 15$ Air quality monitor: ESP32, Bluetooth & Home assistant
If you are a DIY lover, the first sensors you look at are : temperature sensor and airquality sensor. #Metoo. I have started with the temperature sensor in this article and found that amazing. I decided to go try the airquality monitoring. I wanted something cheap, and ideally with bluetooth to connect it easily to my ESP32 and Home assistant, I found that Airbox WP6003 can do the job. Requirements: ESP32-DevKit board: Buy it here Airbox WP6003 Bluetooth: Buy it here Collecting information BLE devices normally has characteristics that can be access using an ID.