Skip to content

Commit

Permalink
Fix scrape config files path
Browse files Browse the repository at this point in the history
Signed-off-by: Leonhard Mayr <leonhard.mayr@manz.at>
  • Loading branch information
manzsolutions-lpr committed Jun 3, 2024
1 parent 4af5c9b commit f91150b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roles/prometheus/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ prometheus_static_targets_files:
- prometheus/targets/*.json

prometheus_scrape_config_files:
- prometheus/targets/*.yml
- prometheus/targets/*.json
- prometheus/scrapes/*.yml
- prometheus/scrapes/*.json

# yamllint disable rule:line-length
prometheus_alert_rules: # noqa yaml[line-length] # noqa line-length
Expand Down
2 changes: 1 addition & 1 deletion roles/prometheus/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ scrape_configs:
{% if prometheus_version is version('2.43.0', '>=') %}
{% if prometheus_scrape_config_files != [] %}
scrape_config_files:
- scrapes/*
{{ prometheus_scrape_config_files | to_nice_yaml(indent=2,sort_keys=False) | indent(2,False) }}
{% endif %}
{% endif %}

0 comments on commit f91150b

Please sign in to comment.