Re: How to use /v2/app_usage_events for billing purpose


Noburou TANIGUCHI
 

Hi,

Is it able to change the default "one month" in CF deployment manifest?
I think this is the entry:

https://github.com/cloudfoundry/cf-release/blob/30c387facb7a9f618b1a6d5d25a5cd5ee3a469c9/jobs/cloud_controller_ng/spec#L131
<pre>
cc.app_usage_events.cutoff_age_in_days:
</pre>

Off course you shouldn't change the default in cf-release. You should change
the correspond entry in your CF deployment manifest.

Regards,


王小锋 wrote
Hi, there

I have deployed CF env in AWS, and there are some applications running on
it. I found one useful article talking about billing CF users :
https://blog.starkandwayne.com/2015/01/22/billing-your-cloud-foundry-users/.

I tried cf curl /v2/app_usage_events in my CF env, I found that I could
only retrieve app events for one month, is this exepcted? Is it able to
change the default "one month" in CF deployment manifest?

If I want to track the app usage for one org, for example org1, and org1
have one app running for more than one month, then there will be no app
usage for this long running app, then how to meter such app? Should I list
all apps available in the org currenlty, if the app is not in the app
usage
event, I could image the app has been created more than one month?

Another thing, if I want to bill app usage by month, should I call
/v2/app_usage_events/destructively_purge_all_and_reseed_started_apps at
the
end of each month?

Is there anyone have done similar things in the past and share your
experience? Many thanks.

_______________________________________________
cf-dev mailing list
cf-dev(a).cloudfoundry
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev




--
View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-How-to-use-v2-app-usage-events-for-billing-purpose-tp919p922.html
Sent from the CF Dev mailing list archive at Nabble.com.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.