Bug 2076637 - Configure metrics for vsphere driver to be reported
Summary: Configure metrics for vsphere driver to be reported
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Jan Safranek
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-19 14:26 UTC by Hemant Kumar
Modified: 2022-08-10 11:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:07:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift vmware-vsphere-csi-driver-operator pull 84 0 None Merged Bug 2076637: Scrape CSI driver + syncer metrics 2022-06-06 08:50:31 UTC
Github openshift vmware-vsphere-csi-driver-operator pull 85 0 None Merged Bug 2089973: bump libs to k8s 1.24 for OCP 4.11 2022-06-06 08:50:32 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:08:06 UTC

Description Hemant Kumar 2022-04-19 14:26:02 UTC
Configure metrics for vsphere driver to be reported

Comment 1 Jan Safranek 2022-04-21 16:39:30 UTC
Adding driver + syncer metrics to Prometheus.

The driver reports regular go metrics (process_open_fds, go_threads, ...), the only driver specific thing is `vsphere_csi_info`:

# HELP vsphere_csi_info CSI Info
# TYPE vsphere_csi_info gauge
vsphere_csi_info{version="09175db5"} 1

The syncer is mostly the same, it has vsphere_syncer_info:

# HELP vsphere_syncer_info Syncer Info
# TYPE vsphere_syncer_info gauge
vsphere_syncer_info{version="09175db5"} 1


(to be honest, the metrics don't look very useful)

Comment 4 Wei Duan 2022-04-24 07:44:00 UTC
Verified passed on 4.11.0-0.nightly-2022-04-23-153426

The following metrics are be albe to reported from Prometheus.

    "vsphere_csi_driver_error",
    "vsphere_csi_info",
    "vsphere_csi_volume_ops_histogram_bucket",
    "vsphere_csi_volume_ops_histogram_count",
    "vsphere_csi_volume_ops_histogram_sum",

    "vsphere_full_sync_ops_histogram_bucket",
    "vsphere_full_sync_ops_histogram_count",
    "vsphere_full_sync_ops_histogram_sum",
    "vsphere_sync_errors",
    "vsphere_syncer_info",

Move status to "VERIFIED"

Comment 5 Wei Duan 2022-04-24 12:19:53 UTC
On an upgrade cluser (from 4.10.0-0.nightly-2022-04-23-095048 to 4.11.0-0.nightly-2022-04-23-153426), only vsphere_csi_driver_error and vsphere_sync_errors presnet.
Will double check.

Move status to "ON_QA"

Comment 11 Jan Safranek 2022-05-31 09:24:02 UTC
This should be fixed by library-go bump in https://github.com/openshift/vmware-vsphere-csi-driver-operator/pull/85

Comment 14 Wei Duan 2022-06-09 06:30:07 UTC
Verified pass on upgrade case:


    "vsphere_cns_volume_ops_histogram_bucket",
    "vsphere_cns_volume_ops_histogram_count",
    "vsphere_cns_volume_ops_histogram_sum",
    "vsphere_csi_info",

    "vsphere_full_sync_ops_histogram_bucket",
    "vsphere_full_sync_ops_histogram_count",
    "vsphere_full_sync_ops_histogram_sum",
    "vsphere_sync_errors",
    "vsphere_syncer_info",


$ oc -n openshift-cluster-csi-drivers get svc
NAME                                           TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                                           AGE
vmware-vsphere-csi-driver-controller-metrics   ClusterIP   172.30.38.193    <none>        442/TCP,443/TCP,444/TCP,445/TCP,446/TCP,447/TCP   7h48m

Comment 16 errata-xmlrpc 2022-08-10 11:07:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069


Note You need to log in before you can comment on or make changes to this bug.