summarylogtreecommitdiffstats
path: root/prometheus-mosquitto-exporter.service
blob: d2a421803954aebd65d82b2696fe1b4f9ec73a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Prometheus exporter for mosquitto metrics
Requires=network-online.target
After=network-online.target

[Service]
User=mosquitto_exporter
Group=mosquitto_exporter
Restart=on-failure
EnvironmentFile=-/etc/conf.d/prometheus-mosquitto-exporter
ExecStart=/usr/bin/mosquitto-exporter $NODE_EXPORTER_ARGS
ExecReload=/bin/kill -HUP $MAINPID
NoNewPrivileges=true
ProtectHome=read-only
ProtectSystem=strict

[Install]
WantedBy=multi-user.target