Skip to content

Commit

Permalink
fix: ✅ fix configuration logic for consul exporter
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Klyuchkin <anviar@users.noreply.github.com>
  • Loading branch information
anviar committed Jan 27, 2025
1 parent 6520ea2 commit 2b2fc16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/consul_exporter/templates/consul_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,23 @@ ExecStart={{ consul_exporter_binary_install_dir }}/consul_exporter \
{% endif %}
{% if consul_exporter_health_summary %}
--consul.health-summary \
{% else %}
--no-consul.health-summary
{% endif %}
{% if consul_exporter_agent_only %}
--consul.agent-only \
{% else %}
--no-consul.agent-only \
{% endif %}
{% if consul_exporter_allow_stale %}
--consul.allow_stale \
{% else %}
--no-consul.allow_stale \
{% endif %}
{% if consul_exporter_require_consistent %}
--consul.require_consistent \
{% else %}
--no-consul.require_consistent \
{% endif %}
'--web.listen-address={{ consul_exporter_web_listen_address }}' \
'--web.telemetry-path={{ consul_exporter_web_telemetry_path }}' \
Expand Down

0 comments on commit 2b2fc16

Please sign in to comment.