4 ms·
What is the best way to set up those alerts? Specifically how do you set something up that knows if unexpected restarts happened? Is there a dbus or similar eve
by thayne 3y ago
What is the best way to set up those alerts? Specifically how do you set something up that knows if unexpected restarts happened? Is there a dbus or similar event you can listen for?
- pnutjam 3y agohttps://www.baeldung.com/linux/systemd-service-fail-notification https://www.baeldung.com/linux/systemd-service-fail-notifica...
- cramjabsyn 3y agoWorth looking into prometheus. in basic form that'd be gathering metrics from https://github.com/prometheus-community/systemd_exporter https://github.com/prometheus-community/systemd_exporter on your hosts, and configure alerting in grafana or prometheus alertmanager to notify when a threshold is exceeded