Bug 2071611

Summary: Metrics documentation generators are missing metrics/recording rules
Product: Container Native Virtualization (CNV) Reporter: Assaf Admi <aadmi>
Component: MetricsAssignee: João Vilaça <jvilaca>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10.0CC: cnv-qe-bugs, ctomasko, dbasunag, jvilaca, kmajcher, sradco, stirabos
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-v4.11.0-439 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 19:29:36 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:

Description Assaf Admi 2022-04-04 11:09:47 UTC
Description of problem:

Metrics documentation generators in different CNV components don't collect all component's metrics and recording rules. 

For example, CDI's metrics.md (https://github.com/kubevirt/containerized-data-importer/blob/main/doc/metrics.md) is missing two metrics:
1. "kubevirt_cdi_cr_ready" (https://github.com/kubevirt/containerized-data-importer/blob/main/pkg/operator/controller/controller.go#L72)
2. "kubevirt_cdi_incomplete_storageprofiles_total" (https://github.com/kubevirt/containerized-data-importer/blob/main/pkg/controller/storageprofile-controller.go#L30)

CNAO's metrics.md (https://github.com/kubevirt/cluster-network-addons-operator/blob/main/docs/metrics.md) is missing recording rules which are defined in https://github.com/kubevirt/cluster-network-addons-operator/blob/main/data/monitoring/prom-rule.yaml

Comment 1 Alex Kalenyuk 2022-05-16 14:37:01 UTC
*** Bug 2069635 has been marked as a duplicate of this bug. ***

Comment 2 Satyajit Bulage 2022-06-14 05:57:56 UTC
I see metrics and recording rules for CDI and CNAO are present on the document and are available in respective documents.

Comment 5 errata-xmlrpc 2022-09-14 19:29:36 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 Virtualization 4.11.0 Images security and bug fix 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:6526