Live data from Hacker News

Show HN: Homelab Monitoring Setup with Grafana

blog.randombits.host

31–40 of 84 posts

Re: Show HN: Homelab Monitoring Setup with Grafana

#31
post #16

I'm in the process of building out a Grafana stack (Prometheus, Loki, Tempo, Mimir, Grafana) for my day job right now. ...and also for one of my side projects, OSRBeyond. It's easy to get overwhelmed by all the moving pieces, but it's also a lot of _fun_ to set up.

> It's easy to get overwhelmed by all the moving pieces Exactly my thoughts! Isn't there something (open source and as good as Prometheus+Grafana) that doesn't have as many moving parts as the stack used by OP? I can imagine there are many use cases for that: from side projects (homelabs) to small startups that don't have huge distributed systems, but still need monitoring (without relying on third-parties). Ideally,…

I use Telegraf (collector) + Influx (storage) + Grafana (visualization and alerting). Telegraf is amazingly simple to use for collection and has a ton of plugins available.

Re: Show HN: Homelab Monitoring Setup with Grafana

#32
post #9

This confirms to me what I suspected when I was trying to determine whether to host my own Grafana stack or use the Grafana Cloud free tier - that I'd end up spending a ton of time fiddling with a constellation of services I didn't actually care about that I could spend on the projects and services I do care about. I've not found it too hard to stay within the limits of the free tier. The 10 dashboards limit is the m…

IIRC grafana cloud requires to use their importer which was a no-start for me. Also 14 days retention is not useful for home, I want to know temperature and power stats from last winter, not from last 2 weeks. Even the "first paid" tier contains only 13 months of retention I just used VictoriaMetrics all-in-one binary for home stuff + grafana as visualisation

I use Grafana Cloud with OpenTelemery without problems.

Re: Show HN: Homelab Monitoring Setup with Grafana

#33

I have been using Zabbix to monitor my servers for the last years, since I wanted something simple and this Grafana/Prometheus stack always scared me because, as the OP says, of the amount of “moving parts”. Zabbix has been quite solid and has lots of templates for different servers (linux, windows, etc), triggers and can also monitor docker containers (although i never tried that). The only thing Zabbix cant do well…

I'm satisfied with Zabbix too. With something like what OP described, I'd always be worried some integration between all these 'moving pieces' could break and my monitoring would be down without me knowing. Definitely appreciate simplicity with regards to monitoring.

Re: Show HN: Homelab Monitoring Setup with Grafana

#34
post #31
post #16

Earlier quoted context omitted.

> It's easy to get overwhelmed by all the moving pieces Exactly my thoughts! Isn't there something (open source and as good as Prometheus+Grafana) that doesn't have as many moving parts as the stack used by OP? I can imagine there are many use cases for that: from side projects (homelabs) to small startups that don't have huge distributed systems, but still need monitoring (without relying on third-parties). Ideally,…

I use Telegraf (collector) + Influx (storage) + Grafana (visualization and alerting). Telegraf is amazingly simple to use for collection and has a ton of plugins available.

+1 for Telegraf (with Prometheus and Grafana), rolled out a monitoring stack for our internal network in something like 2 days when a colleague had been manually checking `top` for years each morning. Huge benefit.

Re: Show HN: Homelab Monitoring Setup with Grafana

#35
I self host for years about 30 services, out of these 3 are vital (bitwarden, home assistant and pihole).

I work in IT, I am a geek so I tried a few monitoring systems and wrote two myself.

Then I realized that I have self-sustaining, 24/7 monitoring agents: wife and children.

I gave up trying to have the right stack and just wait for them to yell.

Seriously: it works great and it made me wonder WHY I am trying to monitor. Turns out this is more for the fun, discovery of tools than a real need at home.

Re: Show HN: Homelab Monitoring Setup with Grafana

#36
post #14
post #2

Hey everyone, this is a post I've been working on the past few months about setting up my own monitoring stack with Grafana for my home server. I'd love your feedback on how this process could be easier for me, some resources on learning the Grafana query languages, and general comments. Thanks for taking the time to read + engage!

What does the monitoring actually do for you? I've seen these setups, even setup one for myself a few times (either Grafana or similar such as Netdata, or Linode's Longview) but I've not really seen what it does for me beyond the "your disk is almost full" warnings.

Continuous performance monitoring of a service, from its inception. I'm building a storage service using SeaweedFS and also a web UI for another project. One thing I'm looking at doing is using k6[1] in order to do performance stress testing of API endpoints and web frontends on a continuous basis under various conditions.[2] For example, I'm trying to lean hard into using R2/S3 for storage offload, so my question is: "What does it look like when Seaweed offloads a local volume chunk to S3 aggressively, and what is the impact of that in a 90/10 hot/cold split on objects?" Maybe 90/10 storage splits are too aggressive or optimistic to hit a specific number. Every so often -- maybe every day at certain points, or a bigger global test once a week -- you run k6 against all these endpoints, record the results, and shuffle them into Prometheus so you can see if things get noticeably worse for the user. Test login flows under bad conditions, when objects they request are really cold or large paginations occur, etc.

You can run numbers manually but I think designing for it up front is really important to keep performance targets on lock. That's where Prometheus and Grafana come in. And I think looking at performance numbers is a really good way to help understand systems dynamics and helps you ask why something is hitting some threshold. On the other hand, there are so many tools and they're often fun to play with, it's easy to get carried away. There's also a pretty reasonable amount of complexity involved in setting it up, so it's also easy to just say fuck it a lot of times and respond to issues on demand instead.

[1] http://k6.io/, it's also a Grafana project.

[2] It can test both normal REST endpoints but also browsers thanks to the use of headless chrome/chromium! So you can actually look at first paint latency and things like that too.

Re: Show HN: Homelab Monitoring Setup with Grafana

#37
Mildly related: can anyone recommend a time series database that supports easy aggregation by week (with the ability to configure the start of the week) and month? I'm looking for something to switch from InfluxDB which I'm currently using. The linked article is using Prometheus which also doesn't appear to support this functionality.

Re: Show HN: Homelab Monitoring Setup with Grafana

#40
post #29
post #16

Earlier quoted context omitted.

> It's easy to get overwhelmed by all the moving pieces Exactly my thoughts! Isn't there something (open source and as good as Prometheus+Grafana) that doesn't have as many moving parts as the stack used by OP? I can imagine there are many use cases for that: from side projects (homelabs) to small startups that don't have huge distributed systems, but still need monitoring (without relying on third-parties). Ideally,…

I think there's nothing currently that combines both logging and metrics into one easy package and visualizes it, but it's also something I would love to have. Vector[1] would work as the agent, being able to collect both logs and metrics. But the issue would then be storing it. I'm assuming the Elastic Stack might now be able to do both, but it's just to heavy to deal with in a small setup. A couple of months ago I…

Does using vector commit you to DataDog in any way?
Post reply on HN