Skip to content

Commit

Permalink
flags are different for agent mode
Browse files Browse the repository at this point in the history
Signed-off-by: Stan Rudenko <stan@truera.com>
  • Loading branch information
rooty0 committed Aug 19, 2023
1 parent 5e39f45 commit cf566ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/prometheus/templates/prometheus.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ExecStart={{ _prometheus_binary_install_dir }}/prometheus \
{% endif %}
{% else %}
--enable-feature=agent \
--storage.agent.path={{ prometheus_db_dir }} \
{% endif %}
{% if prometheus_version is version('2.24.0', '>=') %}
--web.config.file={{ prometheus_config_dir }}/web.yml \
Expand Down Expand Up @@ -58,7 +59,6 @@ RestrictSUIDSGID=true

{% if (ansible_facts.packages.systemd | first).version is version('231', '>=') %}
ReadWritePaths={{ prometheus_db_dir }}
WorkingDirectory={{ prometheus_db_dir }}
{% for path in prometheus_read_only_dirs %}
ReadOnlyPaths={{ path }}
{% endfor %}
Expand Down

0 comments on commit cf566ba

Please sign in to comment.