From d7bd6ff45e82bb54754517441d76e87475a5c522 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 25 Aug 2026 13:15:44 +0200 Subject: [PATCH] Fix Redfish exporter scrape configuration When hosts are enrolled with Redfish, the generated inventory uses redfish_address instead of ipmi_address, resulting in wrong Prometheus scrape configuration for the Redfish exporter. --- doc/source/configuration/monitoring.rst | 2 +- etc/kayobe/stackhpc-monitoring.yml | 2 +- ...edfish-address-for-redfish-exporter-ae1504867ef77d59.yaml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/use-redfish-address-for-redfish-exporter-ae1504867ef77d59.yaml diff --git a/doc/source/configuration/monitoring.rst b/doc/source/configuration/monitoring.rst index 889846b706..46381a876c 100644 --- a/doc/source/configuration/monitoring.rst +++ b/doc/source/configuration/monitoring.rst @@ -313,7 +313,7 @@ To configure the exporter, adjust the variables in redfish_exporter_default_password: "{{ ipmi_password }}" # The address of the BMC that is queried by redfish exporter for metrics. - redfish_exporter_target_address: "{{ ipmi_address }}" + redfish_exporter_target_address: "{{ redfish_address | default(ipmi_address, true) }}" Deploy the exporter on the seed: diff --git a/etc/kayobe/stackhpc-monitoring.yml b/etc/kayobe/stackhpc-monitoring.yml index d443c12c65..c2fd3b1fa6 100644 --- a/etc/kayobe/stackhpc-monitoring.yml +++ b/etc/kayobe/stackhpc-monitoring.yml @@ -62,7 +62,7 @@ redfish_exporter_default_username: "{{ ipmi_username }}" redfish_exporter_default_password: "{{ ipmi_password }}" # The address of the BMC that is used to query redfish metrics. -redfish_exporter_target_address: "{{ ipmi_address }}" +redfish_exporter_target_address: "{{ redfish_address | default(ipmi_address, true) }}" # How often to scrape OpenStack Exporter in seconds. stackhpc_prometheus_openstack_exporter_interval: 300 diff --git a/releasenotes/notes/use-redfish-address-for-redfish-exporter-ae1504867ef77d59.yaml b/releasenotes/notes/use-redfish-address-for-redfish-exporter-ae1504867ef77d59.yaml new file mode 100644 index 0000000000..887035d25b --- /dev/null +++ b/releasenotes/notes/use-redfish-address-for-redfish-exporter-ae1504867ef77d59.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes Redfish exporter scrape configuration when hosts are defined with + ``redfish_address`` instead of ``ipmi_address``.