summarylogtreecommitdiffstats
path: root/prometheus-fritzbox-exporter.service
diff options
context:
space:
mode:
authorddennis2020-10-29 14:47:36 +0100
committerddennis2020-10-29 14:47:36 +0100
commitd6b2ab513928a5215e92853f5106d158f75603e6 (patch)
treee660a14f95faa6054d6c08b36d519ad87418a187 /prometheus-fritzbox-exporter.service
downloadaur-d6b2ab513928a5215e92853f5106d158f75603e6.tar.gz
Initial commit - first version
Diffstat (limited to 'prometheus-fritzbox-exporter.service')
-rw-r--r--prometheus-fritzbox-exporter.service26
1 files changed, 26 insertions, 0 deletions
diff --git a/prometheus-fritzbox-exporter.service b/prometheus-fritzbox-exporter.service
new file mode 100644
index 000000000000..0124e59510fb
--- /dev/null
+++ b/prometheus-fritzbox-exporter.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=Prometheus UPnP exporter for Fritz!Box routers
+
+[Service]
+ExecStart=/usr/bin/prometheus-fritzbox-exporter -gateway-url http://fritz.box:49000 -metrics-file /opt/fritzbox_exporter/metrics.json -listen-address 127.0.0.1:9101
+DynamicUser=true
+
+NoNewPrivileges=true
+ProtectSystem=full
+ProtectKernelModules=true
+ProtectKernelTunables=true
+PrivateTmp=true
+LockPersonality=true
+ProtectHostname=true
+ProtectHome=true
+ProtectControlGroups=true
+ProtectKernelLogs=true
+PrivateDevices=true
+RestrictRealtime=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+CapabilityBoundingSet=CAP_NET_RAW
+AmbientCapabilities=CAP_NET_RAW
+
+[Install]
+WantedBy=multi-user.target