summarylogtreecommitdiffstats
path: root/prometheus-systemd-exporter.service
diff options
context:
space:
mode:
authorMatthias Loibl2020-06-26 23:36:13 +0200
committerMatthias Loibl2020-06-26 23:36:13 +0200
commit648699d2347c33620b4eb7c3041a6db242973c36 (patch)
tree9690e736615eeda360c877ed9bd0a01da9bfa63e /prometheus-systemd-exporter.service
downloadaur-prometheus-systemd-exporter.tar.gz
Initial Commit
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