this post was submitted on 17 Feb 2024
92 points (100.0% liked)

Selfhosted

45345 readers
707 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 2 years ago
MODERATORS
 

How do you monitor your server containers, disks, load...?

Do you use an easy-to-use web interface? Do you do everything via SSH? Or maybe you've got a more complicated setup?

I want to change my setup and I'm looking for new ideas, I've been using Cockpit for some years and some of the plugins are really outdated (ZFS for example) and others are completely broken (docker-compose).

top 50 comments
sorted by: hot top controversial new old
[–] aksdb@lemmy.world 48 points 1 year ago (2 children)

My own server? YOLO

At work? Grafana, KOBS, Victoria Metrics, Jaeger, OpsGenie, ...

[–] summerof69@lemm.ee 19 points 1 year ago (2 children)

My own server? YOLO

I can't figure out whether there's a monitoring tool called YOLO or you don't monitor anything.

[–] aksdb@lemmy.world 18 points 1 year ago (1 children)

Now I am intrigued to develop one that is called YOLO.

But just in case: no, I don't monitor my server. If I notice something not working, I ssh into the machine and check what's up. I don't want to deal with another zoo of services for the monitoring part.

[–] Shimitar@feddit.it 3 points 1 year ago
[–] Gimpydude 8 points 1 year ago
[–] AlphaAutist@lemmy.world 4 points 1 year ago (1 children)

This is the first time I’ve heard of Victoria Metrics. It looks like it has a similar use case as Prometheus, is that correct? If so, what made you or your team choose one over the other?

[–] aksdb@lemmy.world 2 points 1 year ago (2 children)

IIRC it had better performance than Prometheus. We also ditched Elasticsearch in favor of ClickHouse to keep up with log ingestion.

[–] AlphaAutist@lemmy.world 2 points 1 year ago

Thanks for the info! Looks pretty cool I’ll have to check it out

[–] scrion@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

I can second that. We had some really good experiences with ClickHouse and its performance. If it fits the bill, it's a very nice piece of software.

[–] Toes@ani.social 46 points 1 year ago (2 children)

My clients when they text me the server is down.

[–] fatboy93@lemm.ee 22 points 1 year ago (1 children)

This has the same energy as my spouse yelling at me because jellyfin went down

[–] Passerby6497@lemmy.world 4 points 1 year ago

Or my partners greeting me in the morning "Home assistant went down again, so the lights are all manual"

Thankfully that one is mostly solved.

[–] TCB13@lemmy.world 4 points 1 year ago

So damn accurate ahhaha

[–] zaphod@lemmy.ca 21 points 1 year ago

"Huh weird, I tried to use and it's not working. Welp, guess I better fix it..."

[–] ArmoredCavalry@lemmy.world 20 points 1 year ago (7 children)

I'm a huge fan of Netdata, very configurable and monitors just about anything you could want. Great interface and alerts too - https://www.netdata.cloud/

[–] cmeu@lemmy.world 9 points 1 year ago

Same been running netdata for years. They're monetizing now where it used to just be free. Good for them, it's a great product. And it's foss

[–] Trincapinones@lemmy.world 6 points 1 year ago (2 children)

I was looking for something free that I could host on my machine but thanks, I didn't know about it

[–] kueckieben@discuss.tchncs.de 9 points 1 year ago (1 children)

Netdata is free and can be run standalone. Just install it and do not configure the cloud integration. You can see your dashboard on localhost:19999

[–] Trincapinones@lemmy.world 2 points 1 year ago (1 children)

Oh that's neat, will take a look! Can you run it on docker?

[–] ArmoredCavalry@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

As others stated, you can run and access the interface locally (or setup your own reverse proxy) for free. Their Cloud dashboard is also free for up to 5 nodes. They recently added a flat-rate "Homelab" plan as well, if you want to remove the limit. It's all quite usable for $0 otherwise though!

[–] pixelscience@sh.itjust.works 5 points 1 year ago

Netdata 100%

It feeds my itch for more data than I know what to do with and it's presented in one of the cleanest ways I've ever seen for so much info.

load more comments (4 replies)
[–] rambos@lemm.ee 12 points 1 year ago

I just use homepage as my homepage :D

I can see simple CPU/RAM/storage stats and got widgets for almost all services, one of them is portainer so I can see if any service is stopped (most of them are running in docker). Also few services send notification on error or update

I know its not really a monitoring tool, but it works well enough for me

[–] Concave1142@lemmy.world 8 points 1 year ago

Zabbix for agent / snmp based statistics.

Uptime Kuma for up/down states with a webhook notification into Discord so I get instant alerts on my phone when one goes down.

[–] Dran_Arcana@lemmy.world 7 points 1 year ago (2 children)

How has nobody in this thread said check_mk yet?

It's free, you host it yourself. It's built off of nagios, compatible with nagios plugins, supports snmp or agent based checks. It can email, SMS, slack or discord you when something breaks, you can write your own custom checks in any language that can output to a local console... I could never imagine even looking for something else.

[–] corsicanguppy@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

+1 for check_mk.

It's got a scriptable config file that begs for automation like mgmtConfig and it does SNMP. For me, that's it. SNMP->MQTT->SNMP next year.

load more comments (1 replies)
[–] SorteKanin@feddit.dk 5 points 1 year ago* (last edited 1 year ago) (1 children)

Grafana set up to run on the server locally, then I connect to it via SSH forwarding. Then I can view all kinds of metrics in my browser in a neat interface.

[–] Trincapinones@lemmy.world 3 points 1 year ago (1 children)

I liked Grafana a lot, but I can't monitor things like zfs pools with it right?

[–] SorteKanin@feddit.dk 6 points 1 year ago (1 children)

I don't know as I don't use zfs pools, but a simple search led me to this https://grafana.com/grafana/dashboards/15362-zfs-pool-metrics/

[–] Trincapinones@lemmy.world 3 points 1 year ago

Nevermind then! Will take a look at it ^^

[–] m_randall@sh.itjust.works 5 points 1 year ago (1 children)

I like monit. It’s simple to setup and pretty flexible.

https://mmonit.com/monit/

[–] TCB13@lemmy.world 2 points 1 year ago

I used it as well until I found out I could just do it with systemd. https://www.baeldung.com/linux/systemd-service-fail-notification

[–] sysadmin420@lemmy.world 5 points 1 year ago* (last edited 1 year ago) (2 children)

I've been using uptime Kuma recently and it's great but works better outside of docker.

Inside docker I'd get a lot of false down positives from I assume docker throttling the checks.

Plus it works with email, telegram, and matrix chat alerts. I monitor all my clients sites with it, and it's bullet proof behind caddy.

load more comments (2 replies)
[–] possiblylinux127@lemmy.zip 4 points 1 year ago (1 children)
[–] Trincapinones@lemmy.world 3 points 1 year ago (1 children)

I am running everything in docker compose so I've never found a use to it that justifies the waste of power

[–] possiblylinux127@lemmy.zip 2 points 1 year ago* (last edited 1 year ago) (1 children)

docker-compose doesn't scale well and if you run it natively it is a little less secure.

Virtualization adds 1-2% of overhead at most and gives you way more control of how the hardware is used.

If you setup is small docker-compose might be easier to manage but as soon as you get more hardware it becomes the limiting factor. I still use docker-compose but now I run it in a VM

[–] Toribor@corndog.social 2 points 1 year ago

I switched from docker compose to pure Ansible for deploying my containers. Makes managing config and starting containers across multiple hosts super easy. I considered virtualizing too but decided it didn't offer me enough advantages. If I ever have an issue with the host OS I just reinstall using a preseed file and then rerun my playbooks and it's ready to go.

[–] packetloss@lemmy.world 4 points 1 year ago (2 children)
[–] aordogvan@lemmy.world 2 points 1 year ago

Second Zabbix. Been using it for years and it just works.

[–] IHawkMike@lemmy.world 1 points 1 year ago

Adding my vote for Zabbix. It was a bit of a bear to set up and I had to write custom scripts to install the agents with TLS settings that were secure enough for me, but once it's all set up it's amazingly easy and intuitive to use and incredibly customizable.

[–] MystikIncarnate@lemmy.ca 4 points 1 year ago

At home, libreNMS. Just SNMP everything.

For work, whatever the tool of the day is from management.

[–] refreeze@lemmy.world 4 points 1 year ago

Prometheus and Altertmanager

[–] TheInsane42@lemmy.world 4 points 1 year ago

At home, nagios, at work colleagues. (I finally escaped the admin rat race)

[–] pythia@lemmy.dbzer0.com 3 points 1 year ago

Monitorix or Netdata.

[–] SaintWacko@midwest.social 2 points 1 year ago

I use Proxmox, so I just use the PVE web interface

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

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

Fewer Letters More Letters
MQTT Message Queue Telemetry Transport point-to-point networking
SSH Secure Shell for remote terminal access
SSL Secure Sockets Layer, for transparent encryption
TLS Transport Layer Security, supersedes SSL
VPS Virtual Private Server (opposed to shared hosting)

5 acronyms in this thread; the most compressed thread commented on today has 16 acronyms.

[Thread #521 for this sub, first seen 17th Feb 2024, 17:25] [FAQ] [Full list] [Contact] [Source code]

[–] JoeKrogan@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

Btop and logwatch with logrotate. I use healthchecks to check if the server is unreachable and it notifies me.

load more comments