#1122830 prometheus-node-exporter: support socket activation

Package:
prometheus-node-exporter
Source:
prometheus-node-exporter
Description:
Prometheus exporter for machine metrics
Submitter:
Helmut Grohne
Date:
2025-12-12 21:09:06 UTC
Severity:
normal
Tags:
#1122830#5
Date:
2025-12-10 11:07:43 UTC
From:
To:
Hi,

prometheus-node-exporter does support socket activation. All it takes is
passing --web.systemd-socket and having a .socket unit. In fact, the
upstream provided systemd examples in examples/systemd/ do exactly that.

The examples cannot be just installed, because they use $OPTIONS instead
of $ARGS and /etc/sys_config instead of /etc/defaults.

Could you copy the socket activation pieces anyway?

Helmut