From 377df0b6841bf61f128c8b9098cc1bf6d506a5b7 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 28 Sep 2019 21:06:36 -0400 Subject: Update the role, add some more documentation, and a license --- templates/prometheus/runit/run | 9 ++++----- templates/prometheus/systemd.unit | 5 +---- 2 files changed, 5 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/prometheus/runit/run b/templates/prometheus/runit/run index cf9ad65..b14e2d1 100644 --- a/templates/prometheus/runit/run +++ b/templates/prometheus/runit/run @@ -1,6 +1,5 @@ #!/bin/sh -exec {{prometheus_home_dir}}/prometheus/prometheus \ - --config.file "{{prometheus_home_dir}}/conf/prometheus.yml" \ - --storage.tsdb.path "{{prometheus_data_dir}}" \ - --storage.tsdb.retention.time "{{prometheus_retention_time}}" \ - --web.listen-address "{{prometheus_ui_listen}}" +exec chpst -u {{prometheus_user}} \ + {{prometheus_home_dir}}/prometheus/prometheus \ + {{prometheus_opts | replace('\n', ' ')}} \ + > {{prometheus_log}} 2>&1 diff --git a/templates/prometheus/systemd.unit b/templates/prometheus/systemd.unit index 856f299..b1bd6cb 100644 --- a/templates/prometheus/systemd.unit +++ b/templates/prometheus/systemd.unit @@ -7,9 +7,6 @@ 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}}" +ExecStart={{prometheus_home_dir}}/prometheus/prometheus {{prometheus_opts | replace('\n', ' ')}} [Install] WantedBy=multi-user.target -- cgit v1.2.3