summarylogtreecommitdiffstats
path: root/prometheus-systemd-exporter.service
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus-systemd-exporter.service')
-rw-r--r--prometheus-systemd-exporter.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/prometheus-systemd-exporter.service b/prometheus-systemd-exporter.service
new file mode 100644
index 000000000000..f5df7ec87833
--- /dev/null
+++ b/prometheus-systemd-exporter.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Prometheus exporter for systemd units, written in Go.
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+Restart=on-failure
+ExecStart=/usr/bin/prometheus-systemd-exporter --web.listen-address=127.0.0.1:9558
+NoNewPrivileges=true
+ProtectHome=read-only
+ProtectSystem=strict
+
+[Install]
+WantedBy=multi-user.target