20 lines
487 B
Django/Jinja
20 lines
487 B
Django/Jinja
[Unit]
|
|
Description=Prometheus Blackbox Exporter
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
User={{ blackbox_exporter_user }}
|
|
Group={{ blackbox_exporter_group }}
|
|
AmbientCapabilities=CAP_NET_RAW
|
|
CapabilityBoundingSet=CAP_NET_RAW
|
|
ExecStart=/usr/local/bin/blackbox_exporter \
|
|
--config.file={{ blackbox_exporter_config_path }} \
|
|
--web.listen-address={{ blackbox_exporter_web_listen_address }}
|
|
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|