service-prometheus: fix variables
This commit is contained in:
parent
a6faeb0ff6
commit
ec039343df
3 changed files with 3 additions and 3 deletions
|
@ -28,4 +28,4 @@ prometheus_goroot: "{{ prometheus_workdir }}/go"
|
|||
prometheus_gopath: "{{ prometheus_workdir }}/gopath"
|
||||
|
||||
prometheus_default_opts: "--config.file={{ prometheus_config_path }}/prometheus.yml --storage.tsdb.path={{ prometheus_db_path }}"
|
||||
alertmanager_default_opts: "-config.file={{ prometheus_config_path }}/alertmanager.yml -storage.path={{ alertmanager_db_path }}"
|
||||
alertmanager_default_opts: "--config.file={{ prometheus_config_path }}/alertmanager.yml --storage.path={{ alertmanager_db_path }}"
|
||||
|
|
|
@ -8,7 +8,7 @@ Type=simple
|
|||
User={{ prometheus_user }}
|
||||
Group={{ prometheus_group }}
|
||||
|
||||
{% if prometheus_opts is defined %}
|
||||
{% if alertmanager_opts is defined %}
|
||||
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }} {{ alertmanager_opts }}
|
||||
{% else %}
|
||||
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }}
|
||||
|
|
|
@ -9,7 +9,7 @@ User={{ prometheus_user }}
|
|||
Group={{ prometheus_group }}
|
||||
|
||||
{% if prometheus_opts is defined %}
|
||||
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }} {{ prometheus_node_exporter_opts }}
|
||||
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }} {{ prometheus_opts }}
|
||||
{% else %}
|
||||
ExecStart={{ prometheus_daemon_dir }}/prometheus {{ prometheus_default_opts }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue