Blogs
Blogs
How to Set Up Prometheus Remote Write to Push Metrics to VictoriaMetrics
I’ve been running my own monitoring stack for years, and if there’s one thing I’ve learned, it’s that Prometheus alone can feel like trying to store all your holiday decorations in a single shoebox. It works fine at first, but soon you’re dealing with capacity issues and wondering where that one crucial metric from three months ago disappeared to. That’s why I recently set up Prometheus remote write to push metrics to VictoriaMetrics for centralized, long-retention storage.
Build a Smart Light Dimmer with ESP32 and a Rotary Encoder in Home Assistant
I’ve always loved the tactile feel of a good knob. While voice commands and smartphone apps are convenient, there’s something deeply satisfying about physically turning a dial to dim the lights. I wanted to bridge that gap between the digital smarts of Home Assistant and the physical world. So, I set out to build a custom smart light dimmer with ESP32 and a rotary encoder. The goal was simple: a knob that not only controls my smart lights locally but also stays perfectly in sync with their state in Home Assistant.
Visualizing Time Series Data Using Grafana’s Transform and Threshold Tools
I’ve been staring at Grafana dashboards for years now—first while monitoring complex cloud infrastructure, and more recently to keep tabs on my increasingly smart (and sometimes overly opinionated) home. There’s a particular frustration that comes with a dashboard that shows data but doesn’t tell a story. You know the one: a tangled mess of lines on a graph, all in the same color, leaving you squinting and asking, “Okay, but is this good or bad?
Turn ESP32 Into a BLE Beacon Scanner for Presence Detection in Home Assistant
Turn ESP32 Into a BLE Beacon Scanner for Presence Detection in Home Assistant Before we begin: This guide assumes you have Home Assistant already set up and are comfortable with basic ESPHome configurations. I’ve tried nearly every presence detection method in my smart home journey - from WiFi-based tracking that drained my phone battery to GPS solutions that were anything but reliable indoors. That’s when I discovered the magic of BLE beacon scanning with ESP32 for room-level presence detection.
Detect Outliers in Your Metrics: A Practical Guide to Grafana Machine Learning
I’ve always been the kind of person who stares at a Grafana dashboard, watching a squiggly line, and wondering, “Is that dip normal? Should I be worried?” For years, my answer was to set up a basic threshold alert. If CPU usage goes above 90%, page someone. But what about the weird, subtle stuff? The slow creep of memory leakage or the sudden, inexplicable drop in request rate that doesn’t cross any static line but just feels… off?
Control a Smart Fan with ESP32 and Home Assistant Using Temperature Triggers
I’ve always been fascinated with making my home smarter, especially when it comes to energy efficiency and comfort. There’s something deeply satisfying about having your home respond to environmental conditions without lifting a finger. In this tutorial, I’ll show you how I built a system that automatically controls a fan based on room temperature using an ESP32 and Home Assistant. Why I Built This System Living in a climate with hot summers, I found myself constantly adjusting fans throughout the day.
Monitor Home Internet Speed Automatically with Prometheus and Speedtest Exporter
I've been battling my internet service provider for months over sporadic slowdowns that always seem to happen right before my important video calls. Sound familiar? After one too many "everything looks fine on our end" responses, I decided to take matters into my own hands and build a system that automatically tracks my internet speed 24/7. In this tutorial, I'll show you how to set up your own internet speed monitoring system using Prometheus and a Speedtest Exporter.
Automating Window Blinds with ESP32 Servo Motor and Home Assistant
I’ve always been fascinated with the idea of waking up to natural sunlight instead of a blaring alarm clock. But as someone who also values sleeping in on weekends, I needed a solution that could give me the best of both worlds. That’s when I decided to automate my window blinds with an ESP32 and servo motors, integrating everything seamlessly with Home Assistant. After a few prototypes (and one slightly mangled blind slat), I’ve perfected a system that opens my blinds based on either time schedules or ambient light conditions.
Using PromQL to Analyze CPU, Memory, and Network Metrics Effectively
If you’ve ever stared at a Grafana dashboard wondering why your server’s CPU is spiking like a caffeinated squirrel, you’re not alone. Prometheus and PromQL are my go-to tools for making sense of infrastructure metrics—once you get the hang of them, they’re like having X-ray vision for your systems. In this guide, I’ll walk you through writing effective PromQL queries to monitor CPU, memory, and network performance. Whether you’re debugging a mysterious latency issue or just keeping an eye on resource usage, these tips will save you hours of head-scratching.
Prometheus vs VictoriaMetrics: Performance, Storage, and Query Language Compared
I’ve spent years tinkering with monitoring tools—first as a hobbyist automating my smart home, then professionally while scaling observability pipelines. Two names kept popping up: Prometheus (the de facto standard) and VictoriaMetrics (the “faster, cheaper” alternative). But which one should you use? Let’s break it down with real-world benchmarks, storage deep-dives, and query language quirks. Why Compare Prometheus and VictoriaMetrics? Prometheus is the Kubernetes-monitoring darling, but VictoriaMetrics promises better performance with lower resource usage.