Skip to content

Commit de697bd

Browse files
committed
Redfish exporter: Fixes scrape group
We were only including the scrape group `overcloud` in the prometheus config. This change allows the scrape group to work as intended.
1 parent 978d7b1 commit de697bd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

etc/kayobe/kolla/config/prometheus/prometheus.yml.d/60-redfish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ scrape_configs:
1515
replacement: "{{ lookup('vars', admin_oc_net_name ~ '_ips')[groups.seed.0] }}:9610"
1616
static_configs:
1717
{% for host in groups.get('redfish_exporter_targets', []) %}
18-
{% if hostvars[host]["redfish_exporter_scrape_group"] | default('overcloud') == 'overcloud' %}
1918
- targets:
2019
- '{{ hostvars[host]["redfish_exporter_target_address"] }}'
2120
labels:
2221
server: '{{ host }}'
2322
env: "{{ kayobe_environment | default('openstack') }}"
2423
group: "{{ hostvars[host]['redfish_exporter_scrape_group'] | default('overcloud') }}"
25-
{% endif %}
2624
{% endfor %}
2725
{% endif %}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue where setting ``redfish_exporter_scrape_group`` to a value
5+
other than ``overcloud`` would exclude those nodes from the redfish
6+
exporter scrapes.

0 commit comments

Comments
 (0)