================
== betoissues ==
================

Setting up monitoring with Grafana

I’ve been running different servers for about 10 years now, but I’ve never really had to set-up anything related to monitoring for my personal needs; in fact, I don’t need it right now.

Since I’m already working in some changes to my infrastructure like a adding a hub VM for working remotely, adding a new website, and updating other services, this time I also decided to include some monitoring. The idea first came when thinking about the analytics for this site.

No, I didn’t want to add any more scripts (like simpleanalytics.com) to this site as it’s meant to be lightweight. I only wanted to check how many requests and top visited paths (hello, goaccess). Anyways, I went all in to make use of nginx’s logs.

Took me a while to figure out, using Grafana, Loki, and Alloy, eventually it worked with nginx JSON logging. Now I have a dashboard with the different virtualhosts running in this server. It’s my first time setting up a Grafana instance from scratch, so I was a bit confused on how new datasources were ingested and creating the queries.

Eventually I figured out the problem wasn’t even my Alloy configuration, but how I didn’t know that I had to create a query (and basically choose which logfile to use) for data to start displaying. Besides that, reading the documentation and using Docker Compose made it straightforward.

I even took a few more minutes (not even 30) to set up Prometheus and connect it with my newly created Uptime Kuma.

I’m looking forward to adding more services and improving my infrastructure in the future. For now I’m just happy with my recent achievement and the experience I gained.

Uptime Kuma Grafana Dashboard

In less than 30 minutes with Prometheus, Uptime Kuma’s /metrics and a dashboard template.

articles from blogs i follow

Being reminded that Git commits are separate from Git trees

Firefox's official source repository has moved to Git, but to a completely new Git repository, n…

via Chris's Wiki :: blog May 1, 2025
Doom GPU Flame Graphs

AI Flame Graphs are now open source and include Intel Battlemage GPU support, which means it can al…

via Brendan Gregg's Blog May 1, 2025
📝 30 April 2025 at 08:41 - I need to get out with the dogs before the...

I need to get out with the dogs before the temperature rises from "the …

via Kev Quirk April 30, 2025

Generated by openring