migrate fully to cf v3 api only
cf_exporter currently uses the cf v2 api to get the app and space summary. For example here.
The cf v2 api has been deprecated for quite some time , but now concrete steps have been proposed to disable it. Since v3 does not offer an alternative for v2's space and app summary, it will be a challenge to get a solution that does not hammer the Cloud Controller too much.
Hi @metskem ,
I think as a first step we will add a flag that by default disables those calls, so we do not run into issues when it gets disabled in cf-deployment by default. Next step we want to check if we can replace it with something based on v3.
I've started to look at bbs in this PR https://github.com/cloudfoundry/cf_exporter/pull/129 , but unfortunately, I haven't had much time to work on that in recent months.
the principle is to use information from bss to retrieve information on the number of requested instances and the number of running instances
@gmllt do you have an update of the state of the PR? Wondering if we should release a version without the metrics from v2 first as it is by default now deprecated on cf-deployment.