Adds possibility to call BBS to retrieve stats for application's processes states.#129
Conversation
2d914f6 to
71eb8b8
Compare
|
Waiting for cloudfoundry/cloud_controller_ng!3863 to be merged and released. |
|
Waiting for cloudfoundry/cli!2933 to be merged. |
337713f to
aea97bd
Compare
8550d41 to
e1bad98
Compare
28375f6 to
6d6a189
Compare
|
@gmllt the BBS API URL, what would that be ? => https://github.com/cloudfoundry/cf-deployment/blob/a0f8634a507108481c6b08304719ab7babace102/cf-deployment.yml#L151 |
|
I receive always
|
|
got it to work, setting skip-ssl to true made the trick. Unfortunately the logs do not give you any insights why the connection did not work. I don't think we do a fallback to the old logic, as it gets removed nevertheless. I would remove the fallback and make the BBS config optional, e.g. if the BBS config is not present do not gather the summary metrics as maybe not everyone wants to make BBS available to their monitoring VMs. |
|
@gmllt could you look into my latest comments and see if you can adjust accordingly? |
9f8a89a to
5393af3
Compare
Unfortunately, I haven't found any methods in the bbs client that allow me to retrieve anything other than a boolean on the connection test. I'll see if it's possible to suggest a modification.
I removed the fallback. |
|
@benjaminguttmann-avtq |
cf-go-client-helper is now compatible with cloudfoundry/cli 8.13.0 |
5f7d5ed to
8fe4fe8
Compare
Now using ActualLRPs request instead of Ping request. This brings more information is case of error. |
|
@benjaminguttmann-avtq as this is a breaking change, do you think it's interesting to start a |
Yes, I think it makes sense if we go with a v2 to mark the start of the only v3-api version |
Done. You can consider to merge this PR (or create a new v2 branch) if everything looks good for you :
|
|
@gmllt you think we should mentioned in the README that configuring the BBS values is optional? |
…nfigured or unreachable
…-community/go-cf-clients-helper/v2 to v2.9.0
… error info if needed
…esents a breaking change
- Explicit the fact that configure BBS values is optional
d9cecf1 to
3afab11
Compare
|
@gmllt is it expected that without configuring BBS I still get |
The purpose of this PR is to propose the use of BBS to fetch the RUNNING state of the main application process.
This should help to avoid calls to
/v2/space/:space_guid/summaryendpointsbbs internal client is configurable with :
If bbs is not configured or unreachable, the code switch to the old method using
/v2/space/:space_guid/summaryto retrieve application running instances number.Buildpacks information are retrieve with the new relationship introduced since CAPI 1.189.0