Bug 1875470

Summary: Allow OS and arch labels in some recording rules
Product: OpenShift Container Platform Reporter: ravig <rgudimet>
Component: Windows ContainersAssignee: ravig <rgudimet>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: alegrand, anpicker, aos-bugs, aravindh, erooth, gmarkley, kakkoyun, lcosic, mloibl, pkrupa, rgudimet, surbania
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:37:33 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 ravig 2020-09-03 14:48:07 UTC
Description of problem:

As OpenShift becomes heterogeneous, it is ideal to get a feel of how many nodes belong to a certain OS type, arch etc via telemetry. Especially with OpenShift supporting Windows nodes in 4.6, the Windows Containers team would like to get 
- Total number of Windows nodes used by all customers
- Total number of cores on the Windows nodes

As of now, we're missing this info in the recording rules.

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


How reproducible:
Always

Steps to Reproduce:
1. 
2.
3.

Actual results:
No query exists today to get number of nodes based on OS type or arch.

Expected results:
Query exists to get number of nodes based on OS type and arch and we can use it in telemetry 

Additional info:

Comment 3 gaoshang 2020-09-11 14:08:52 UTC
QE testing passed by check following "Query" expressions in "Monitoring" --> "Metrics" in OCP console.

cluster:capacity_cpu_cores:sum
cluster:node_instance_type_count:sum

Version:
# oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.6.0-0.nightly-2020-09-10-145837   True        False         17h     Cluster version is 4.6.0-0.nightly-2020-09-10-145837

windows-machine-config-operator git commit: 38eb51cd41f5a2bcf4c2aa01c8186e23b77b9f7c

Comment 5 errata-xmlrpc 2020-10-27 16:37:33 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.6 GA Images), 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-2020:4196