formula-prometheus-ng/prometheus/files/prometheus.systemd.jinja
Eric Renfro ce7512d643
Multiple changes in preparation for the "ng" fork.
* Changed references to salt://prometheus-ng/...
* Added generic templates for exporters.
* Added variables passed on to templates.
2019-05-08 16:09:25 -04:00

19 lines
425 B
Django/Jinja

[Unit]
Description=Monitoring system and time series database
Documentation=https://prometheus.io/docs/introduction/overview/
Wants=basic.target
After=basic.target network.target
[Service]
User={{ user }}
Group={{ user }}
EnvironmentFile=/etc/default/prometheus
ExecStart={{ bin_path }}/prometheus $ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=42s
[Install]
WantedBy=multi-user.target