Observability
-
Verify the Cert-Manager is deployed and configured on the OpenShift Cluster. Please review the Red Hat documentation for the procedure.
-
Verify the user workload monitoring is enabled and configured on the OpenShift Cluster. Please review Red Hat documentation for the procedure to configure user workload monitoring on the OpenShift Cluster.
-
Enable Observability module in the CSM
Use this command to create the ContainerStorageModule custom resource with Observability enabled.
oc create -f csm-powermax.yamlExample:
cat <<EOF> csm-powermax.yaml apiVersion: storage.dell.com/v1 kind: ContainerStorageModule metadata: name: powermax namespace: powermax spec: driver: csiDriverType: "powermax" configVersion: v2.16.0 module: - name: observability enabled: true components: - name: otel-collector enabled: true - name: metrics-powermax enabled: true EOFVerify the Observability Pods are created.
oc get pod -n powermax NAME READY STATUS RESTARTS AGE karavi-metrics-powermax-69855dbdd5-5mshq 1/1 Running 0 2m54s otel-collector-b496d8c4d-gp6zz 2/2 Running 0 2m55sVerify the Observability Services.
oc get svc -n powermax NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE karavi-metrics-powermax ClusterIP 172.30.169.86 <none> 2222/TCP 3m29s otel-collector ClusterIP 172.30.127.237 <none> 55680/TCP,8443/TCP 3m29s -
Create Service Monitor to scrape the Observability module by the OpenShift Observability.
Use this command to create the ServiceMonitor.
oc apply -f smon-otel-collector.yamlExample:
cat <<EOF> smon-otel-collector.yaml apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: otel-collector namespace: powermax spec: endpoints: - path: /metrics port: exporter-https scheme: https tlsConfig: insecureSkipVerify: true selector: matchLabels: app.kubernetes.io/instance: karavi-observability app.kubernetes.io/name: otel-collector EOFVerify the ServiceMonitor is created.
oc get smon -n powermax NAME AGE otel-collector 44h
Verify the PowerMax metrics are visible in the OpenShift Console. On the OpenShift Console, navigate to Observer and then Metrics, search for PowerMax metrics. User can follow the official guide to install Openshift Virtualization in OCP cluster. Once installed, OpenShift Virtualization automatically creates the ServiceMonitor required by Prometheus to scrape KubeVirt metrics. On the OpenShift Console, navigate to Observer and then Metrics, search for kubevirt metrics.
User can use PromQL join queries to correlate KubeVirt metrics with Dell CSI storage metrics for advanced insights. For example, for each VM disk, find its allocated size of the underlying PowerMax volume, using the following query:
Installing OpenShift Virtualization and Accessing KubeVirt Metrics
label_replace(kubevirt_vm_disk_allocated_size_bytes, "Namespace", "$1", "namespace", "(.*)") * on(persistentvolumeclaim, Namespace) group_left(PersistentVolumeName) label_replace(powermax_volume_read_bw_megabytes_per_second, "persistentvolumeclaim", "$1", "PersistentVolumeClaimName", "(.*)")