1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/bm-configuring-ipe.adoc
2026-01-23 16:23:18 +00:00

84 lines
2.6 KiB
Plaintext

// This is included in the following assemblies:
//
// * installing/installing_bare_metal/bare-metal-postinstallation-configuration.adoc
:_mod-docs-content-type: PROCEDURE
[id="bm-configuring-ipe_{context}"]
= Adding node hardware metrics to the Monitoring stack
[role="_abstract"]
To access hardware metrics for your bare-metal nodes in the web console, enable the Ironic Prometheus Exporter in your cluster.
.Prerequisites
* You have enabled the `TechPreviewNoUpgrade` feature set in your cluster's `FeatureGate` custom resource (CR).
For more information, see "Enabling features using feature gates".
* You bare-metal nodes use Redfish-compatible baseboard management controllers (BMCs).
.Procedure
. Enable the Ironic Prometheus Exporter by running the following command:
+
[source,terminal]
----
$ oc patch provisioning provisioning-configuration \
--type=merge \
-p '{"spec":{"prometheusExporter":{"enabled":true}}}'
----
. Optional: Configure the data collection interval by running the following command:
+
[source,terminal]
----
$ oc patch provisioning provisioning-configuration \
--type=merge \
-p '{"spec":{"prometheusExporter":{"sensorCollectionInterval":<interval>}}}'
----
+
Replace `<interval>` with the interval in seconds for collecting sensor data from BMCs.
The minimum value is `60`.
. Optional: Disable default alerting rules for hardware metrics by running the following command:
+
[source,terminal]
----
$ oc patch provisioning provisioning-configuration \
--type=merge \
-p '{"spec":{"prometheusExporter":{"disableDefaultPrometheusRules":true}}}'
----
+
When `disableDefaultPrometheusRules` is set to `true`, the configuration prevents deployment of default alerting rules for hardware metrics.
. Optional: Disable the Ironic Prometheus Exporter by running the following command:
+
[source,terminal]
----
$ oc patch provisioning provisioning-configuration \
--type=merge \
-p '{"spec":{"prometheusExporter":{"enabled":false}}}'
----
.Verification
. From the web console, click *Observe* -> *Metrics* and enter "baremetal" into the **Expression** field.
Several autocomplete suggestions should appear, such as the following examples:
+
`baremetal_power_status`
+
`baremetal_temperature_status`
+
`baremetal_drive_status`
+
`baremetal_fan_status`
. Select one of the autocomplete suggestions and click **Run Queries**.
. Verify that the queried hardware metrics appear in the UI.
. If you did not disable default alerting rules, view them by running the following command:
+
[source,terminal]
----
$ oc -n openshift-machine-api get promrule metal3-defaults -oyaml
----