Bug 1803084

Summary: openshift-apiserver 4.2: Unbounded valuesets for metric labels
Product: OpenShift Container Platform Reporter: Stefan Schimanski <sttts>
Component: openshift-apiserverAssignee: Stefan Schimanski <sttts>
Status: CLOSED DUPLICATE QA Contact: Ke Wang <kewang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, kewang, mfojtik, xxia
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1803080
: 1803087 (view as bug list) Environment:
Last Closed: 2020-05-27 10:11:13 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: 1803080    
Bug Blocks: 1798291, 1798297    

Comment 7 Ke Wang 2020-05-26 02:35:48 UTC
Checked related metrics from Prometheus  for 4.2 not fixed OCP build, client tag is not empty, see the following
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.2.0-0.nightly-2020-04-12-022832   True        False         24m     Cluster version is 4.2.0-0.nightly-2020-04-12-022832

apiserver_request_total{client="cluster-kube-apiserver-operator/v0.0.0 (linux/amd64) kubernetes/$Format",code="0",component="apiserver",contentType="application/json",endpoint="https",group="config.openshift.io",instance="...:6443",job="apiserver",namespace="default",resource="apiservers",scope="cluster",service="kubernetes",verb="WATCH",version="v1"}

Verified with fixed OCP build 4.2.0-0.nightly-2020-05-07-194422,  searched related metrics from Prometheus

apiserver_request_count{code="200",component="apiserver",contentType="application/vnd.kubernetes.protobuf",endpoint="https",group="oauth.openshift.io",instance="...:8443",job="api",namespace="openshift-apiserver",pod="apiserver-lf9qz",resource="oauthclients",scope="cluster",service="api",verb="GET",version="v1"}

apiserver_request_total{code="200",component="apiserver",contentType="application/json",endpoint="https",group="image.openshift.io",instance="...42:8443",job="api",namespace="openshift-apiserver",pod="apiserver-f9qp8",resource="imagestreams",scope="cluster",service="api",verb="LIST",version="v1"}

Compared old 4.2 and latest 4.2 build about the apiserver_request_total and  apiserver_request_count at the Prometheus metric, the label ‘client’ was gone, it is as expected.

Comment 8 Xingxing Xia 2020-05-27 10:11:13 UTC
Per https://bugzilla.redhat.com/show_bug.cgi?id=1798297#c6, closing this bug 1803084 as dup to avoid the same issue is dup tracked and verified in multiple bugs.

*** This bug has been marked as a duplicate of bug 1798297 ***