Bug 2058225

Summary: openshift_csi_share_* metrics are not found from telemeter server
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: BuildAssignee: Adam Kaplan <adam.kaplan>
Status: CLOSED ERRATA QA Contact: Jitendar Singh <jitsingh>
Severity: low Docs Contact:
Priority: high    
Version: 4.10CC: cdaley, hongli, pbhattac, spandura
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Shared Resource CSI driver metrics were not exported to Red Hat telemetry. Consequence: Usage metrics for the Shared Resource CSI driver could not be analyzed. Fix: Shared Resource CSI driver metrics were exposed to Red Hat telemetry. Result: Usage metrics for the Shared Resource CSI driver can be collected and analyzed.
Story Points: ---
Clone Of: 2058219 Environment:
Last Closed: 2022-08-10 10:51:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Junqi Zhao 2022-02-24 14:31:00 UTC
Description of problem:
telemetry-config configmap is the metrics allowlist for telemeter client, the following metrics are not found from telemeter server: https://infogw-proxy.api.openshift.com/

openshift_csi_share_configmap		
openshift_csi_share_mount_failures_total		
openshift_csi_share_mount_requests_total		
openshift_csi_share_secret

reason is the metrics are not added to telemeter server allowlist, see from
https://github.com/rhobs/configuration/blob/main/configuration/telemeter/metrics.json

#  oc -n openshift-monitoring get cm telemetry-config -o jsonpath="{.data.metrics\.yaml}"
matches:
...

# owners: (@openshift/team-build-api)
#
# openshift_csi_share_configmap measures amount of config maps shared by csi shared resource driver.
- '{__name__="openshift_csi_share_configmap"}'
#
# owners: (@openshift/team-build-api)
#
# openshift_csi_share_secret measures amount of secrets shared by csi shared resource driver.
- '{__name__="openshift_csi_share_secret"}'
#
# owners: (@openshift/team-build-api)
#
# openshift_csi_share_mount_failures_total measures amount of failed attempts to mount csi shared resources into the pods.
- '{__name__="openshift_csi_share_mount_failures_total"}'
#
# owners: (@openshift/team-build-api)
#
# openshift_csi_share_mount_requests_total measures total amount of attempts to mount csi shared resources into the pods.
- '{__name__="openshift_csi_share_mount_requests_total"}'

OpenShift release version:
4.10.0-0.nightly-2022-02-22-093600

How reproducible:
always

Steps to Reproduce (in detail):
1. search the mentioned metrics from local cluster
2. check in telemeter server 
3.


Actual results:
no result from telemeter server: https://infogw-proxy.api.openshift.com/

Expected results:
should see the result

Impact of the problem:


Additional info:
Docs on the process on why and how to send these metrics:
https://docs.google.com/document/d/1a6n5iBGM2QaIQRg9Lw4-Npj6QY9--Hpx3XYut-BrUSY/edit#heading=h.i05nm4wmvn7x

Comment 1 Adam Kaplan 2022-02-24 16:31:20 UTC
Giving this higher priority, as we need telemetry data to understand how customers are using a tech preview feature.

Comment 2 Corey Daley 2022-04-06 13:21:17 UTC

From what I can see, all of the metrics information listed was added via pull request https://github.com/openshift/cluster-monitoring-operator/pull/1477
Can you please verify that this is still an issue?

Comment 7 errata-xmlrpc 2022-08-10 10:51:15 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