this post was submitted on 30 Nov 2023
3 points (80.0% liked)

Self-Hosted Main

502 readers
1 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.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I’m deploying my NodeJS app + Postgres + Redis in an Ubuntu VPS. Postgres + Redis is running in Docker, whole app is behind an Nginx proxy.

Currently, to monitor, I use a mix of htop (to check server health), docker stats, tail nginx log.

Please recommend me a better way to monitor this (pulling all log & metrics into 1 source and show dashboard like Grafana or something). I just want simple stats like nginx log, CPU &RAM load… Fancier metrics like Redis cache hit/miss rate, slow queries in Postgres is a bonus too.

Asked in self-host because most cloud options have those dashboard & log already.

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 9 months ago

You can just host a Prometheus+Grafana stack on the same machine.

Grafana's alerts can send emails

[–] [email protected] 1 points 9 months ago

write a python app and send yourself an email depending on your requirements

[–] [email protected] 1 points 9 months ago
[–] [email protected] 1 points 9 months ago

Grafana has free tier where you can easily setup the agent and then send data to their cloud and it stays there for 14 days.

[–] [email protected] 1 points 9 months ago

What about Zabbix?

Can use templates for Redis:
https://www.zabbix.com/la/integrations/redis

and nginx:
https://www.zabbix.com/la/integrations/nginx

and many more

[–] [email protected] 1 points 9 months ago

Zabbix for up/down and performance monitoring/alerting. Can use snmp or their agent to extract info. It can apparently do syslog as well but haven’t figured it out yet so instead I’m using openobserve.

Potentially could pull data from Zabbix and openobserve into grafana for dashboards.

[–] [email protected] 1 points 9 months ago

sentry.io can be selfhosted for app monitoring.

Netdata is a 'set-and-forget' server monitoring solution. If you want something more tailored, go the prometheus+grafana route.

You can also have your app emit prometheus metrics as well.

[–] [email protected] 1 points 9 months ago

UptimeKuma for ping/ ssl certicate check. Grafana / prometheus / Loki for logs and metrics monitoring.