formula-prometheus/prometheus/files/exporter/service

20 lines
481 B
Text
Raw Permalink Normal View History

[Unit]
Description=Prometheus {{ exporter }} Exporter
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
EnvironmentFile=-/etc/default/{{ svc_name }}
User={{ user }}
Group={{ user }}
Restart=on-failure
ExecStart=/opt/prometheus/{{ exporter }}/bin/{{ svc_name }}
{%- if svc_args is string %}{{ svc_args }}{% else %}
{%- for svc_arg in svc_args %} \
{{ svc_arg }}
{%- endfor %}
2019-05-08 00:14:35 -04:00
{%- endif %}
[Install]
WantedBy=multi-user.target