Skip to content

Commit

Permalink
Merge pull request #1357 from stackhpc/2023.1/fix-scrape-group
Browse files Browse the repository at this point in the history
Redfish exporter: Fixes scrape group
  • Loading branch information
Alex-Welsh authored Nov 4, 2024
2 parents 978d7b1 + de697bd commit 6f7051d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ scrape_configs:
replacement: "{{ lookup('vars', admin_oc_net_name ~ '_ips')[groups.seed.0] }}:9610"
static_configs:
{% for host in groups.get('redfish_exporter_targets', []) %}
{% if hostvars[host]["redfish_exporter_scrape_group"] | default('overcloud') == 'overcloud' %}
- targets:
- '{{ hostvars[host]["redfish_exporter_target_address"] }}'
labels:
server: '{{ host }}'
env: "{{ kayobe_environment | default('openstack') }}"
group: "{{ hostvars[host]['redfish_exporter_scrape_group'] | default('overcloud') }}"
{% endif %}
{% endfor %}
{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue where setting ``redfish_exporter_scrape_group`` to a value
other than ``overcloud`` would exclude those nodes from the redfish
exporter scrapes.

0 comments on commit 6f7051d

Please sign in to comment.