Bug 1885856

Summary: Missing registry v1 protocol usage metric on telemetry
Product: OpenShift Container Platform Reporter: Ricardo Maraschini <rmarasch>
Component: Image RegistryAssignee: Ricardo Maraschini <rmarasch>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: low Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, obulatov
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Feature: Export operator metrics to telemetry Reason: We need to understand if clients are leveraging image stream imports using docker registry v1 protocol, hence this export helps us in achieving that. Result: Metrics related to protocol v1 usage will be visible in telemetry.
Story Points: ---
Clone Of:
: 1904091 (view as bug list) Environment:
Last Closed: 2021-02-24 15:23:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1904091    

Description Ricardo Maraschini 2020-10-07 07:43:18 UTC
Description of problem:

We are not exposing the v1 registry protocol usage metric to telemetry


Actual results:

We can't see the metric on telemetry

Expected results:

We would like to see the metric exposed there


Additional info:

The metric we need to expose is named v1_image_imports_total and to expose it please read https://github.com/openshift/cluster-monitoring-operator#adding-new-metrics-to-be-sent-via-telemetry

Comment 2 Ricardo Maraschini 2020-10-19 23:01:29 UTC
Awaiting for review

Comment 7 Wenjing Zheng 2020-12-16 08:38:58 UTC
$ oc -n openshift-monitoring get cm telemetry-config -o jsonpath="{.data.metrics\.yaml}" | grep apiserver_v1_image_imports:sum
# (image-registry-team) :apiserver_v1_image_imports:sum counts the number of image stream
- '{__name__=":apiserver_v1_image_imports:sum"}'
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.7.0-0.nightly-2020-12-04-013308   True        False         6d21h   Cluster version is 4.7.0-0.nightly-2020-12-04-013308

Verified with above info.

Comment 10 errata-xmlrpc 2021-02-24 15:23:22 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633