Bug 1885856 - Missing registry v1 protocol usage metric on telemetry
Summary: Missing registry v1 protocol usage metric on telemetry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.7.0
Assignee: Ricardo Maraschini
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks: 1904091
TreeView+ depends on / blocked
 
Reported: 2020-10-07 07:43 UTC by Ricardo Maraschini
Modified: 2021-02-24 15:24 UTC (History)
2 users (show)

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.
Clone Of:
: 1904091 (view as bug list)
Environment:
Last Closed: 2021-02-24 15:23:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-image-registry-operator pull 626 0 None closed Bug 1885856: Creating prometheus record rule for v1 imports 2021-02-17 18:21:24 UTC
Github openshift cluster-monitoring-operator pull 949 0 None closed Bug 1885856: Exporting registry v1 protocol usage metric 2021-02-17 18:21:23 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:24:10 UTC

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


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