Skip to content

Comment on Ask HN: How do you monitor your systemd services?

Comments

I run the Prometheus node_exporter on my servers. That has a systemd collector for the state of services.

That reports the state of all systemd services to a central Prometheus and alertmanager cluster, which has various alert rules.

I recommend this approach, as you can also deploy blackbox_exporter to get an "outside" perspective on service status.

You can also restrict the list of systemd services that node_exporter provides metrics for - that way you only store metrics for those services you care about.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.