Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1583049 - Cannot get asb_sandbox prometheus metrics
Cannot get asb_sandbox prometheus metrics
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker (Show other bugs)
3.10.0
Unspecified Unspecified
medium Severity medium
: ---
: 3.11.0
Assigned To: Erik Nelson
Zhang Cheng
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-28 03:33 EDT by Zhang Cheng
Modified: 2018-10-11 03:20 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-10-11 03:20:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2652 None None None 2018-10-11 03:20 EDT

  None (edit)
Description Zhang Cheng 2018-05-28 03:33:55 EDT
Description of problem: 
Cannot get asb_sandbox prometheus metrics
Relate bug for your reference: https://bugzilla.redhat.com/show_bug.cgi?id=1577127#c1


service-catalog & asb image using images:
# service-catalog --version
v3.10.0-0.53.0;Upstream:v0.1.19
# asbd --version
1.2.14


How reproducible:
Always


Steps to Reproduce:
1. Deploy service catalog & ansible service broker by openshift ansible.
2. Check prometheus metrics of ASB by:
# oc login by chezhang user
# oc adm policy add-cluster-role-to-user cluster-debugger chezhang
# host=`oc get route -n openshift-ansible-service-broker | grep -v NAME | awk '{print $2}'`
#  curl -k -H "Authorization: bearer `oc whoami -t`" https://${host}/metrics | grep -i ^asb
3. Provision or Dprovision a serviceinstance, and check prometheus metrics of ASB by:
#  curl -k -H "Authorization: bearer `oc whoami -t`" https://${host}/metrics | grep -i ^asb


Actual results:  
3. asb_sandbox always is "0" due to the bundle-lib refactor.


Expected results: 
2. Should get correct asb_sandbox metrics.


Addition info: 
None
Comment 1 Zhang Cheng 2018-05-28 03:37:27 EDT
Set target release to 3.11 base on Shawn's comments in https://bugzilla.redhat.com/show_bug.cgi?id=1577127#c1

Please correct me if I have any mistake. Thanks.
Comment 2 Erik Nelson 2018-08-08 14:32:13 EDT
Implements initial bundle-lib metrics (bundlelib_sandbox guage):
https://github.com/automationbroker/bundle-lib/pull/161
https://github.com/openshift/ansible-service-broker/pull/1034

Note: this is not part of the asb subsystem, it will display as "bundlelib_sandbox". It will also only be incremented while the sandbox is present (they are deleted following an APB run).
Comment 3 David Zager 2018-08-15 15:41:58 EDT
Errata updated https://errata.devel.redhat.com/advisory/33505:

openshift-enterprise-mariadb-apb-v3.11.0-0.16.0.1
openshift-enterprise-mediawiki-apb-v3.11.0-0.16.0.1
openshift-enterprise-postgresql-apb-v3.11.0-0.16.0.1
openshift-enterprise-mysql-apb-v3.11.0-0.16.0.1
openshift-enterprise-asb-container-v3.11.0-0.16.0.1
Comment 5 Erik Nelson 2018-08-16 09:27:18 EDT
Zhang, I see you're grepping for '^asb', it is not part of this subsystem so it would not appear in that query. See comment 2.

Please retest and grep for 'bundlelib'
Comment 8 Zhang Cheng 2018-08-20 02:27:56 EDT
Changing status to Verified base on comment 6 & comment 7
Comment 10 errata-xmlrpc 2018-10-11 03:20:02 EDT
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-2018:2652

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