cloud_controller_ng icon indicating copy to clipboard operation
cloud_controller_ng copied to clipboard

Emit metrics / events for monitoring service brokers

Open henrytk opened this issue 6 years ago • 5 comments

Note: this has been re-opened following this comment: https://github.com/cloudfoundry/cloud_controller_ng/pull/1165#issuecomment-432995004

A short explanation of the proposed change

Emit extra http status code metrics for certain API endpoints, namely service broker-related endpoints. HTTP requests with the following prefixes will send extra metrics:

/[version]/service_instances /[version]/service_bindings /[version]/service_keys

The emitted metric name is:

cc.requests.#{route}.#{method.downcase}.http_status.#{status.to_s[0]}XX

E.g. cc.requests.service_bindings.put.http_status.5XX

An explanation of the use cases our change solves

Monitoring of service brokers to ensure operations are not failing, such as binding for example.

The current metrics only cover things internal to Cloud Foundry. These metrics provide the opportunity to monitor external components the platform relies on.

Links to any other associated PRs

Associated issue: https://github.com/cloudfoundry/cloud_controller_ng/issues/929 Resurrected from: https://github.com/cloudfoundry/cloud_controller_ng/pull/1165


  • [x] I have reviewed the contributing guide

  • [x] I have viewed, signed, and submitted the Contributor License Agreement

  • [x] I have made this pull request to the master branch

  • [x] I have run all the unit tests using bundle exec rake

  • [ ] I have run CF Acceptance Tests

henrytk avatar Oct 26 '18 14:10 henrytk

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/161509538

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Oct 26 '18 14:10 cf-gitbot

Hi, I left a comment in the PR since there was some more discussion there: https://github.com/cloudfoundry/cloud_controller_ng/pull/1165#issuecomment-433561078

Seeking some feedback from the CAPI/SAPI PMs on this issue since there does seem like there could be observability improvements here.

tcdowney avatar Oct 26 '18 22:10 tcdowney

Thanks @tcdowney. I can see that we are waiting for some further feedback after you've raised some technical concerns.

The SAPI team haven't touched much of the metrics stuff before, so we are relying on you to help us understand the feasibility of this request! Any thoughts @zrob?

mattmcneeney avatar Nov 08 '18 10:11 mattmcneeney

Any updates/thoughts on this one ? CC @zrob @tcdowney

georgi-lozev avatar Nov 23 '18 09:11 georgi-lozev

For anyone following this thread, I think feedback was provided on the associated PR #1165 and we created a story to track this https://www.pivotaltracker.com/n/projects/2105761/stories/161509538 though it has not yet been prioritised.

williammartin avatar May 02 '19 09:05 williammartin