Add monitoring role
This commit is contained in:
parent
dca17d5750
commit
d06406c9f4
17 changed files with 539 additions and 0 deletions
14
roles/monitoring/templates/mqtt_exporter.service
Normal file
14
roles/monitoring/templates/mqtt_exporter.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Prometheus exporter for MQTT
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/mqtt_exporter/mqtt-exporter.py /etc/mqtt_exporter.yaml
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
DynamicUser=true
|
||||
AmbientCapabilities=CAP_NET_RAW,CAP_NET_ADMIN+eip
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue