[Question] Self hosted setup for monitoring Self-hosted services?
from dipak@lemmy.ml to selfhosted@lemmy.world on 22 Apr 03:36
https://lemmy.ml/post/14742319

Hi all. I just set-up my first self-hosting server with NextCloud, Immich and a VPN server. I was wondering if there is a tool or layer of tools which would help me monitor my server and the services including running stats, resource usage stats, system logs, access logs, etc?

I read that Grafana Loki along with Prometheus could possibly help me with this. I just wanted to ask that - should I explore these two tools or do we have some other and better(suiting to my needs) tools? Please recommend Open Source tools only. Preferably Docker, or Linux based otherwise. Thank you :))

#selfhosted

threaded - newest

hperrin@lemmy.world on 22 Apr 03:58 next collapse

www.netdata.cloud

chirospasm@lemmy.ml on 22 Apr 04:08 next collapse

+1 for Netdata

VelociCatTurd@lemmy.world on 22 Apr 04:47 collapse

-1 for Netdata. I used it for a bit, but the configuration is not very intuitive and the docs for alerts were basically “rest of the fucking owl”, at least for the non-cloud version. I ended up just switching to Glances which is pretty boneless but it’s easy.

Though for OP I’d probably recommend Prometheus.

rentar42@kbin.social on 22 Apr 09:09 next collapse

This isn't specific to just netdata, but I frequently find projects that have some feature provided via their cloud offering and then say "but you can also do it locally" and gesture vaguely at some half-written docs that don't really help.

It makes sense for them, since one of those is how they make money and the other is how they loose cloud customers, but it's still annoying.

Shoutout to healthcheck.io who seem to provide both nice cloud offerings and a fully-fledged server with good documentation.

Maximilious@kbin.social on 22 Apr 09:33 collapse

Also -1 for netdata. I loved the analytics but it brought all of my VMs to a screeching halt. It did not seem very will optimized for the amount of data it was polling.

bellsDoSing@lemm.ee on 24 Apr 02:27 collapse

I went through setting up netdata for a sraging (in progression for a production) server not too long ago.

The netdata docs were quite clear on that fact that the default configuration is a “showcase configuration”, not a “production ready configuration”!

It’s really meant to show off all features to new users, who then can pick what they actually want. Great thing about disabling unimportant things is that one gets a lot more “history” for the same amount of storage need, cause there are simply less data points to track. Similar with adjusting the rate which it takes data points. For instance, going down from default 1s internal to 2s basically halfs the CPU requirement, even more so if one also disables the machine learning stuff.

The one thing I have to admit though is that “optimizing netdata configs” really isn’t that quickly done. There’s just a lot of stuff it provides, lots of docs reading to be done until one roughly gets a feel for configuring it (i.e. knowing what all could be disabled and how much of a difference it actually makes). Of course, there’s always a potential need for optimizations later on when one sees the actual server load in prod.

7fb2adfb45bafcc01c80@lemmy.world on 23 Apr 04:40 collapse

I’m a big fan of netdata; it’s part of my standard deployment. I put in some custom configs depending on what services are running on what servers. If there’s an issue it sends me an email and posts into a slack channel.

Next step is an influxdb backend to keep more history.

I also use monit to restart certain services in certain situations.

jeena@jemmy.jeena.net on 22 Apr 04:29 next collapse

I like Uptime Kuma, but it only monitors if a service is online or not. I’m up to 21 services now so I’m not interested in all their details, just if I need to fix something urgently.

JASN_DE@lemmy.world on 22 Apr 04:38 next collapse

Grafana + Prometheus + data gathering will at least give you the resource and usage stats.

mhzawadi@lemmy.horwood.cloud on 22 Apr 05:43 next collapse

How much do you point and click your setup?

As I use nagios

dipak@lemmy.ml on 22 Apr 06:14 collapse

I’m a web-app developer myself. So I don’t mind configuring things if needed. I can opt to configure if it meets my goals better. I’d check out nagios. :))

synestine@sh.itjust.works on 22 Apr 07:35 collapse

If you’re willing to go that route, check out Zabbix and Icinga2 as well. They’re compatible with Nagios checks but the user interface is better.

farcaller@fstab.sh on 22 Apr 05:55 next collapse

I’d swap Prometheus for VoctoriaMetrics. It’s a drop-in replacement with a much better resource consumption story and a few extra goodies.

mbirth@lemmy.mbirth.uk on 22 Apr 08:01 next collapse

I’m using Zabbix to monitor the most important bits.

possiblylinux127@lemmy.zip on 23 Apr 19:40 collapse

There Russian affiliation makes me a bit nervous. It seems fine though

rentar42@kbin.social on 22 Apr 08:51 next collapse

I've not found a good solution for actual constant monitoring and I'll be following this thread, but I have a similar/related item: I use healthcheck.io (specifically a self-hosted instance) to verify all my cron jobs (backups, syncs, ...) are working correctly. Often even more involved monitoring solutions do not cover that area (and it can be quite terrible if it goes wrong), so I think it'll be a good addition to most of these.

andy47@lemmy.world on 23 Apr 22:17 collapse

A similar solution but I use ntfy.sh I have the app on my phone and have it set to alert when jobs ping the service. Mine ping on success but it is possible to ping when the job fails as well.

node815@lemmy.world on 23 Apr 17:37 collapse

Grafana + Prometheus dashboards can be quite addicting or useful. Noted.lol put together a nice tutorial for getting started.

For most of my services though, I simply use Uptime Kuma which then sends an alert to Gotify when my services go down or whatnot, Gotify then instantly notifies my phone so I can be aware. It helps keep the spouse happy when their go to service for some reason crashed. :)