diff options
Diffstat (limited to 'templates/prometheus/systemd.unit')
| -rw-r--r-- | templates/prometheus/systemd.unit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/prometheus/systemd.unit b/templates/prometheus/systemd.unit new file mode 100644 index 0000000..856f299 --- /dev/null +++ b/templates/prometheus/systemd.unit @@ -0,0 +1,15 @@ +# /etc/systemd/system/prometheus.service +[Unit] +Description=Prometheus Server +Documentation=https://prometheus.io/docs/introduction/overview/ +After=network-online.target + +[Service] +User=prometheus +Restart=on-failure +ExecStart={{prometheus_home_dir}}/prometheus/prometheus \ + --config.file "{{prometheus_home_dir}}/conf/prometheus.yml" \ + --storage.tsdb.path "{{prometheus_data_dir}}" \ + --web.listen-address "{{prometheus_ui_listen}}" +[Install] +WantedBy=multi-user.target |
