ansible-role-mongodb/templates/mongodb_exporter.upstart.j2

14 lines
581 B
Plaintext
Raw Permalink Normal View History

2022-01-14 16:48:03 +01:00
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
2022-01-17 18:57:30 +01:00
exec {{ mongodb_prometheus_exporter_cmd }} {{ mongodb_prometheus_exporter_opts }} {{ mongodb_prometheus_exporter_connection_opts }} {{ mongodb_prometheus_exporter_collect_opts }} {{ mongodb_prometheus_exporter_additional_opts }}{% if mongodb_prometheus_exporter_enable_compatible_mode %} --compatible-mode{% endif %}
2022-01-17 19:03:10 +01:00
2022-01-14 16:48:03 +01:00
end script