Bug 2011359

Summary: Change telemeter to report the Application Services product usage metrics
Product: OpenShift Container Platform Reporter: Ken Finnigan <kfinniga>
Component: MonitoringAssignee: Simon Pasquier <spasquie>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: amuller, anpicker, aos-bugs, erooth, ggaughan, juzhao, pnair, spasquie
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2005971 Environment:
Last Closed: 2021-10-26 17:22:42 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:
Bug Depends On: 2005971    
Bug Blocks: 2011339    

Description Ken Finnigan 2021-10-06 13:31:50 UTC
+++ This bug was initially created as a clone of Bug #2005971 +++

Description of problem:
Application Services products need the ability to capture core usage for billing customers on a usage basis.

An operator has been developed to capture the usage and product a metric, but we need the data captured to be sent to Telemeter to feed into systems such as Subscription Watch.

Version-Release number of selected component (if applicable): 4.9


How reproducible:
N/A

Steps to Reproduce:
N/A

Actual results:
N/A

Expected results:
N/A

Additional info:
N/A

--- Additional comment from OpenShift Automated Release Tooling on 2021-10-06 03:54:07 UTC ---

Elliott changed bug status from MODIFIED to ON_QA.
This bug is expected to ship in the next 4.10 release created.

Comment 3 Junqi Zhao 2021-10-18 06:45:57 UTC
tested with PR, "appsvcs:cores_by_product:sum" is in telemeter client/server configuration
client: 
# oc -n openshift-monitoring get cm telemetry-config -o jsonpath="{.data.metrics\.yaml}" | grep "appsvcs:cores_by_product:sum" -C4
#
# owners: (https://github.com/redhat-developer/application-services-metering-operator)
#
# The current amount of CPU used by Application Services products, aggregated by product name.
- '{__name__="appsvcs:cores_by_product:sum"}'

server: https://github.com/rhobs/configuration/blob/main/configuration/telemeter/metrics.json
note: need to roll out the new configuration to production, then we can see the metrics in telemeter server

Comment 6 Junqi Zhao 2021-10-21 09:38:28 UTC
the fix is in 4.9.0-0.nightly-2021-10-18-130840 and later builds, based on Comment 3, set to VERIFIED

Comment 9 errata-xmlrpc 2021-10-26 17:22:42 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 (OpenShift Container Platform 4.9.4 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/RHBA-2021:3935