summaryrefslogtreecommitdiffstats
path: root/wireguard_exporter
diff options
context:
space:
mode:
authorGeorg2021-08-06 17:42:45 +0200
committerGeorg2021-08-06 17:42:45 +0200
commit4bd9e36ff45b2001b048a23a218e26605deac7d0 (patch)
tree4b592921aa4cbf98d75059f9223712b6ddcc1799 /wireguard_exporter
parent1791f4374b72e5bd45dfbe6d2e543d0537f711e0 (diff)
downloadmonitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.gz
monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.bz2
monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.zip
Mass Commit 06/08/2021
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'wireguard_exporter')
-rw-r--r--wireguard_exporter/README.md1
-rw-r--r--wireguard_exporter/wireguard_exporter.service11
2 files changed, 12 insertions, 0 deletions
diff --git a/wireguard_exporter/README.md b/wireguard_exporter/README.md
new file mode 100644
index 0000000..4628c2a
--- /dev/null
+++ b/wireguard_exporter/README.md
@@ -0,0 +1 @@
+We are using this one: https://github.com/mdlayher/wireguard_exporter
diff --git a/wireguard_exporter/wireguard_exporter.service b/wireguard_exporter/wireguard_exporter.service
new file mode 100644
index 0000000..faaf452
--- /dev/null
+++ b/wireguard_exporter/wireguard_exporter.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Prometheus WireGuard Exporter
+After=network.target
+
+[Service]
+Type=simple
+Restart=always
+ExecStart=/usr/local/bin/wireguard_exporter -wireguard.peer-file /etc/wireguard/peers.toml
+
+[Install]
+WantedBy=multi-user.target