Adding PrometheusHistograms support to VictoriaMetrics/metrics

TL;DR: I added support for PrometheusHistograms (those with le buckets) to the VictoriaMetrics/metrics package (a lightweight alternative to prometheus/client_golang), which allows me to: Switch to the more lightweight VictoriaMetrics/metrics library in my open-source projects, which I find simpler to use Make it possible to choose between classical Prometheus histograms or VictoriaMetrics histograms (much more precise) with a flag Maintain compatibility with existing Prometheus-based monitoring setups Problem While working on kubenurse, I wanted to switch from the heavier prometheus/client_golang library to the more lightweight VictoriaMetrics/metrics package. However, there was one significant blocker: the VictoriaMetrics library only supported their own log-based histogram format, not the traditional Prometheus histograms with static le buckets. ...

12 July 2025 路 4 min 路 745 words 路 Cl茅ment Nussbaumer

A Connected Farm, part 1 - Milking 馃悇 馃

Alongside my work as a System Engineer (with a focus on Kubernetes) at PostFinance, I鈥檓 married to a farmer in Switzerland, and live with her and her family on the family farm. This is quite different from my daily work, and I sometimes have the opportunity to help by, for example, feeding calves during milking, using my skills to install surveillance cameras, deploying a long-distance WiFi network across the farm, or modernizing the milking monitoring. It鈥檚 this latter point that I鈥檓 detailing today (without all the technical details, which are covered in the README of the open-source project I鈥檝e created for this purpose). ...

17 February 2024 路 3 min 路 554 words 路 Cl茅ment Nussbaumer