13 lines
514 B
Plaintext
13 lines
514 B
Plaintext
|
description "Prometheus mongodb exporter"
|
||
|
start on (local-filesystems and net-device-up IFACE!=lo)
|
||
|
stop on runlevel [016]
|
||
|
|
||
|
respawn
|
||
|
respawn limit 10 5
|
||
|
setuid {{ mongodb_prometheus_exporter_user }}
|
||
|
setgid {{ mongodb_prometheus_exporter_user }}
|
||
|
|
||
|
script
|
||
|
exec {{ mongodb_prometheus_exporter_cmd }} {{ mongodb_prometheus_exporter_opts }} {{ mongodb_prometheus_exporter_connection_opts }} {{ mongodb_prometheus_exporter_additional_opts }} > {{ mongodb_prometheus_exporter_logdir }}/mongodb_exporter.log 2>&1
|
||
|
end script
|