summarylogtreecommitdiffstats
path: root/prometheus-junos-exporter.service
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus-junos-exporter.service')
-rw-r--r--prometheus-junos-exporter.service24
1 files changed, 24 insertions, 0 deletions
diff --git a/prometheus-junos-exporter.service b/prometheus-junos-exporter.service
new file mode 100644
index 000000000000..dd93e42209c5
--- /dev/null
+++ b/prometheus-junos-exporter.service
@@ -0,0 +1,24 @@
+[Unit]
+Description=prometheus-junos-exporter
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/prometheus-junos-exporter \
+ -config.file=/etc/prometheus-junos-exporter/config.yml \
+ -ssh.user=${SSH_USER} \
+ -ssh.keyfile=${SSH_KEYFILE} \
+ -config.ignore-targets=${IGNORE_TARGETS}
+EnvironmentFile=-/etc/conf.d/prometheus-junos-exporter
+ProtectSystem=strict
+PrivateDevices=yes
+ProtectControlGroups=yes
+ProtectKernelTunables=yes
+ProtectHome=tmpfs
+TemporaryFileSystem=/:ro
+BindReadOnlyPaths=/etc/prometheus-junos-exporter
+
+[Install]
+WantedBy=multi-user.service
+
+# vim: ft=systemd