Skip to content

Commit

Permalink
T6949: moves config file to /run
Browse files Browse the repository at this point in the history
  • Loading branch information
nvollmar committed Dec 26, 2024
1 parent 54e2e6b commit 28bf471
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/templates/prometheus/blackbox_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ ExecStart={{ vrf_command }}/usr/sbin/blackbox_exporter \
{% else %}
--web.listen-address=:{{ port }} \
{% endif %}
--config.file=/etc/blackbox_exporter/config.yml
--config.file=/run/blackbox_exporter/config.yml
[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion data/templates/prometheus/blackbox_exporter.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ modules:
prober: icmp
timeout: {{ module_config.timeout }}s
icmp:
preferred_ip_protocol: "{{ module_config.preferred_ip_protocol | replace('v', '') }}"
preferred_ip_protocol: "{{ module_config.preferred_ip_protocol | replace('v', '') }}"
ip_protocol_fallback: {{ 'true' if module_config.ip_protocol_fallback is vyos_defined else 'false' }}
{% endfor %}
{% endif %}
2 changes: 1 addition & 1 deletion src/conf_mode/service_monitoring_prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def generate(monitoring):
)
# Render blackbox_exporter config file
render(
'/etc/blackbox_exporter/config.yml',
'/run/blackbox_exporter/config.yml',
'prometheus/blackbox_exporter.yml.j2',
monitoring['blackbox_exporter'],
)
Expand Down

0 comments on commit 28bf471

Please sign in to comment.