From 06b2a5eba17c4daefeb2e07e21346d539f83695c Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Mon, 6 Jan 2025 16:08:44 -0700 Subject: [PATCH] OCPBUGS-20159: Document how to enable LSO metrics after installation --- modules/persistent-storage-local-metrics.adoc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/persistent-storage-local-metrics.adoc b/modules/persistent-storage-local-metrics.adoc index f21bee4a55ca..389209a57c38 100644 --- a/modules/persistent-storage-local-metrics.adoc +++ b/modules/persistent-storage-local-metrics.adoc @@ -19,8 +19,13 @@ * `lso_lv_provisioned_PV_count`: total number of provisioned PVs for `LocalVolume` -To use these metrics, be sure to: +To use these metrics, enable them by doing one of the following: -* Enable support for monitoring when installing the Local Storage Operator. +* When installing the Local Storage Operator from _OperatorHub_ in the web console, select the _Enable Operator recommended cluster monitoring on this Namespace_ checkbox. -* When upgrading to {product-title} 4.9 or later, enable metric support manually by adding the `operator-metering=true` label to the namespace. +* Manually add the `openshift.io/cluster-monitoring=true` label to the Operator namespace by running the following command: ++ +[source,terminal] +---- +$ oc label ns/openshift-local-storage openshift.io/cluster-monitoring=true +----