Bug 1663856
Summary: | OLM metrics are not updated | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Yadan Pei <yapei> |
Component: | OLM | Assignee: | Evan Cordell <ecordell> |
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.1.0 | CC: | jpeeler, yapei |
Target Milestone: | --- | ||
Target Release: | 4.1.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: | 2019-06-04 10:41:28 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
Yadan Pei
2019-01-07 08:40:01 UTC
PR was merged yesterday. Change status to ON_QA since PR already merged. 1. get catalog operator pod and olm operator pod IP $ oc get pods <catalog_operator_pod> -n openshift-operator-lifecycle-manager -o yaml | grep -i ip $ oc get pods <olm_operator_pod> -n openshift-operator-lifecycle-manager -o yaml | grep -i ip 2. Check metrics 2.1 Check catalog operator pod metrics $ curl -k -H "Authorization: Bearer $(oc sa get-token prometheus-k8s -n openshift-monitoring)" http://<catalog_operator_pod_ip>:8081/metrics | grep -e catalog_source_count -e install_plan_count -e subscription_count catalog_source_count 5.0 install_plan_count 31.0 subscription_count 2.0 2.2 Check olm operator pod metrics curl -k -H "Authorization: Bearer $(oc sa get-token prometheus-k8s -n openshift-monitoring)" http://<olm_operator_pod_ip>:8081/metrics | grep -e csv_count -e csv_upgrade_count csv_count 42.0 csv_upgrade_count 0.0 3. Create a new subscription in 'test' namespace via web console 4. Check the value with command $ oc get installplan --all-namespaces | wc -l // 39-1 should be the installplan count 39 $ oc get sub --all-namespaces | wc -l // 4-1 should be the subscription count 4 $ oc get csv --all-namespaces | wc -l // 85 -1 should be the csv count 85 5. check metrics again 5.1 catalog operator pod metrics $ curl -k -H "Authorization: Bearer $(oc sa get-token prometheus-k8s -n openshift-monitoring)" http://<catalog_operator_pod_ip>:8081/metrics | grep -e catalog_source_count -e install_plan_count -e subscription_count catalog_source_count 5.0 install_plan_count 38.0 subscription_count 3.0 5.2 olm operator pod metrics curl -k -H "Authorization: Bearer $(oc sa get-token prometheus-k8s -n openshift-monitoring)" http://<olm_operator_pod_ip>:8081/metrics | grep -e csv_count -e csv_upgrade_count csv_count 84.0 csv_upgrade_count 0.0 Verified on sh-4.2$ olm -version OLM version: 0.8.1 git commit: a36ed09 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, 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-2019:0758 |