this post was submitted on 14 Dec 2023
37 points (89.4% liked)

Selfhosted

39251 readers
260 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi, I have a bunch of Raspberry Pies hosting all kinds of stuff and I want to have a monitoring solution for all of that. What would be your recommendations?

My goal is to be able to have an overview of CPU load, network load, CPU temp and to see what's going on inside docker containers as I have everything dockerized. I'd like the solution to be open source. I want the solution to be web browser accessible and have nice load graphs with history. I don't want to spend too much time setting it up.

All my Pies are running RaspberryOS, which is Debian based.

all 31 comments
sorted by: hot top controversial new old
[–] MaggiWuerze@feddit.de 25 points 9 months ago (2 children)

Standard solution would be grafana + Prometheus on one server and a node exporter running on each pi. You then register the node exporters in Prometheus and use that as a data source for grafana. There you build a dashboard showing whatever metrics you want. It can also show some information about the Docker socket, like number of running/stopped containers and such.

[–] markr@lemmy.world 4 points 9 months ago

Add in alertmanager and hook it to slack. Get notified whenever containers or systems are misbehaving.

[–] Aux@lemmy.world 1 points 9 months ago
[–] snekerpimp@lemmy.world 10 points 9 months ago (1 children)

Second for Netdata for the temps and load info, portainer for docker monitoring. Netdata gives you more real time info than even glances. Portainer is an easy way to look at logs and such, I don’t use it to manage, prefer command line for that. Netdata we’ll give you some docker info, but not logs.

[–] Aux@lemmy.world 1 points 9 months ago* (last edited 9 months ago)

I use Ansible for management, I just want to see nice graphs and maybe get alerts when things go south. Thanks for recommendation.

[–] Nibodhika@lemmy.world 9 points 9 months ago (1 children)

I use netdata, it's quick and easy, but I don't think it monitors docker containers specifically.

[–] Aux@lemmy.world 1 points 9 months ago

I'll take a look, thanks!

[–] Mellow12@lemmy.world 7 points 9 months ago (1 children)

Grafana, influxdb, telegraf agents. Easy to setup. Barely any configuration required. Everything you asked for in the default telegraf agent config. There are dashboards with plenty of examples on grafanas website.

[–] Aux@lemmy.world 2 points 9 months ago (2 children)

What's the difference between Prometheus and Telegraf? Why do you prefer Telegraf?

[–] Mellow12@lemmy.world 2 points 9 months ago (1 children)

Influxdb is a “time series” database for storing metrics. Temperatures, ram usage, cpu usage with time stamps. Telegraf is the client side agent that sends those metrics to the database in json format. Prometheus does pretty much the same thing but is a bit too bloated for my liking, so I went back to Influx.

[–] foobaz@lemmy.world 2 points 9 months ago

prometheus is bloated?

[–] keyez@lemmy.world 2 points 9 months ago* (last edited 9 months ago) (1 children)

My work environments use Prometheus and node-exporter and grafana. At home I use telegraf, influxdb and grafana (and Prometheus for other app specific metrics) but the biggest reason I went with telegraf and influxdb at home is because Prometheus scrapes data from the configured clients (pull), while telegraf sends the data on the configured interval to influxdb (push) and starting my homelab adventure I had 2 VMS in the cloud and 2 pis at home and having telegraf sending the data in to my pis rather than going out and scraping made it a lot easier for that remote setup. I had influxdb setup behind a reverse proxy and auth so telegraf was sending data over TLS and needed to authenticate to just the single endpoint. That is the major difference to me, but there are also subsets of other exporters and plugins and stuff to tailor data for each one depending on what you want.

[–] Aux@lemmy.world 0 points 9 months ago

Ok, great to know, thanks!

[–] ErwinLottemann@feddit.de 5 points 9 months ago

netdata is easy to set up and detects a lot of things on it's own like databases and ntpd and...

[–] auf@lemmy.ml 3 points 9 months ago (1 children)

I'm suggesting Homepage for someone for the second time.

https://github.com/gethomepage/homepage

[–] Aux@lemmy.world 1 points 9 months ago

I'll take a look, thanks.

[–] johntash@eviltoast.org 3 points 9 months ago (1 children)

I didnt see it recommended yet, UptimeKuma is really simple if you just want to monitor the basics like if a url works or ping, tcp, etc without an agent.

It doesn't do CPU/memory style metrics, but I find myself checking it more often because of how simple it is.

[–] Aux@lemmy.world 0 points 9 months ago (1 children)

I need CPU and other metrics because recently one of my Docker containers got infected with DDOS software and CPU spike was a tell tale.

[–] themurphy@lemmy.world 1 points 9 months ago (1 children)

Omg I have CPU spikes on my Raspberry Pi. Maybe it's infected too, and how would I ever find out?

Is there some software I can run to check?

[–] Aux@lemmy.world 0 points 9 months ago (1 children)

Are they small spikes spread across time or large chunks of heavy load, like 80%+ load for hours? If it's the first, then probably it's just normal operation. Otherwise check your running processes and start tracking what's going on during high loads.

[–] themurphy@lemmy.world 1 points 9 months ago (1 children)

I would say it's 100% load for maybe 3 minutes, so maybe it's normal.

It makes my system overload so my PiHole stops processing.

But it sounds like maybe it's normal and a background service using too much sometimes?

[–] Aux@lemmy.world 0 points 9 months ago

Maybe normal, maybe not. What software do you run there?

[–] Decronym@lemmy.decronym.xyz 2 points 9 months ago* (last edited 9 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
PiHole Network-wide ad-blocker (DNS sinkhole)
SAN Storage Area Network
SSL Secure Sockets Layer, for transparent encryption
TLS Transport Layer Security, supersedes SSL

3 acronyms in this thread; the most compressed thread commented on today has 7 acronyms.

[Thread #353 for this sub, first seen 14th Dec 2023, 15:25] [FAQ] [Full list] [Contact] [Source code]

[–] bmcgonag@lemmy.world 2 points 9 months ago

I'm kind of loving Zabbix, but not sure if it's the right solution for your needs. I'd say it would definitely work, but does take a bit of setup initially. This article is interesting, and seems to have a lot of what you want. Not sure if you want to do all of this. https://opensource.com/article/23/3/build-raspberry-pi-dashboard-appsmith

[–] hottari@lemmy.ml 1 points 9 months ago

Glances should be right up your alley.

[–] MigratingtoLemmy@lemmy.world 1 points 9 months ago
[–] rettet_die_bilche@feddit.de 1 points 9 months ago

Collectd on the host sending data to an openwrt docker container. You can view graphs in the openwrt luci ui

[–] Moonrise2473@feddit.it 1 points 9 months ago

It's old fashioned and maybe difficult to setup initially but I really like munin

[–] Spider89@lemmy.world 1 points 9 months ago

I don't use Docker, so this may not help you, but I find bpytop and ssh works just fine. :)