Bug 1768482 - [marketplace] Default OpSrc metrics cardinality is too great
Summary: [marketplace] Default OpSrc metrics cardinality is too great
Keywords:
Status: CLOSED DUPLICATE of bug 1768483
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alexander Greene
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-04 14:46 UTC by Alexander Greene
Modified: 2019-11-05 18:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 18:25:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alexander Greene 2019-11-04 14:46:44 UTC
Description of problem:
The marketplace operator is configured to expose metrics when it attempts to connect to a default AppRegisrty. Given that each http response code can create a new time series, the telemeter team has requested that we limit the potential number of time series by using a recording rule and exposing that metric to telemter instead.


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

How reproducible: Always

Steps to Reproduce:
1. Create an OpenShift 4.3.x cluster
2. Visit the /metrics endpoint on the marketplace-operator

Actual results:
Each time series tracks a response code and are not grouped by a recording rule.

Example:
app_registry_request_total{code="200",opsrc="community-operators"} 1


Expected results:

app_registry_request_total{code="200",opsrc="community-operators"} 1
app_registry:community_operators:1xx_response 0
app_registry:community_operators:2xx_response 1
app_registry:community_operators:3xx_response 0
app_registry:community_operators:4xx_response 0
app_registry:community_operators:5xx_response 0

Additional info:

Comment 1 Alexander Greene 2019-11-05 18:16:27 UTC
There is an open PR for this bug here: https://github.com/operator-framework/operator-marketplace/pull/259

Comment 2 Alexander Greene 2019-11-05 18:24:52 UTC
(In reply to Alexander Greene from comment #1)
> There is an open PR for this bug here:
> https://github.com/operator-framework/operator-marketplace/pull/259

This was incorrect, the referenced PR was meant for https://bugzilla.redhat.com/show_bug.cgi?id=1768483

Comment 3 Alexander Greene 2019-11-05 18:25:21 UTC

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


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