summarylogtreecommitdiffstats
path: root/prometheus-adguard-exporter.service
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus-adguard-exporter.service')
-rw-r--r--prometheus-adguard-exporter.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/prometheus-adguard-exporter.service b/prometheus-adguard-exporter.service
new file mode 100644
index 000000000000..143abbdaed5d
--- /dev/null
+++ b/prometheus-adguard-exporter.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Prometheus Exporter for AdguardHome metrics
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=adguard_exporter
+Group=adguard_exporter
+Restart=on-failure
+EnvironmentFile=-/etc/conf.d/prometheus-adguard-exporter
+ExecStart=/usr/bin/prometheus-adguard-exporter $ADGUARD_EXPORTER_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+NoNewPrivileges=true
+ProtectHome=read-only
+ProtectSystem=strict
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file