You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your'e looking for snapshots of usage, you will be able to use the resource limits and resource quotas objects to capture the full usage of the system at any point in time. You'll be able to capture at periodic intervals the number of items of each quantity in use and process that as you like.
To see instantaneous usage (pods used per hour) you can watch the global pods list and record that as "pod create" and "pod delete" and record the usage to your own records (I have a few examples based on watching etcd here master...smarterclayton:archiver which is one way of extracting this data). It should be easy to capture and transform usage data from the system for your own needs - it's possible today though to grab and transform the data on the fly.
That's what is there today - coming in the future:
We are working upstream in Kubernetes on total process resource usage (actual, vs provisioned) and rolling that up and reporting it via cAdvisor and Heapster. That will be post 3.0.
Post 3.0, we'll also be looking at rolling up quota based on "accounts" - projects will be bucketed under one or more accounts, and those accounts can have quota and limits of their own. That will be complemented by tools to make it easier to build a full audit log of your entire cluster and deployment, which you can feed into other tools to pull that information.
I think the best way to handle this is to look at how solutions were done with tools like ManageIQ/CloudForms There is no plans to provide native support for billing.
Activity
roldancer commentedon Apr 17, 2015
Hi, any idea how will be the billing system/report for OpenShift V3 ?
smarterclayton commentedon Apr 18, 2015
If your'e looking for snapshots of usage, you will be able to use the resource limits and resource quotas objects to capture the full usage of the system at any point in time. You'll be able to capture at periodic intervals the number of items of each quantity in use and process that as you like.
To see instantaneous usage (pods used per hour) you can watch the global pods list and record that as "pod create" and "pod delete" and record the usage to your own records (I have a few examples based on watching etcd here master...smarterclayton:archiver which is one way of extracting this data). It should be easy to capture and transform usage data from the system for your own needs - it's possible today though to grab and transform the data on the fly.
That's what is there today - coming in the future:
We are working upstream in Kubernetes on total process resource usage (actual, vs provisioned) and rolling that up and reporting it via cAdvisor and Heapster. That will be post 3.0.
Post 3.0, we'll also be looking at rolling up quota based on "accounts" - projects will be bucketed under one or more accounts, and those accounts can have quota and limits of their own. That will be complemented by tools to make it easier to build a full audit log of your entire cluster and deployment, which you can feed into other tools to pull that information.
SoothingMist commentedon Oct 30, 2015
Am unable to see how to limit the amount of money the account can absorb. There needs to be an easy way to do that.
dragon9783 commentedon Apr 15, 2016
LGTM
alikhajeh1 commentedon Mar 14, 2017
@smarterclayton any update or links we can checkout to learn more about your future plans?
sspeiche commentedon Feb 2, 2018
I think the best way to handle this is to look at how solutions were done with tools like ManageIQ/CloudForms There is no plans to provide native support for billing.
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…
Squashed 'cmd/service-catalog/go/src/github.com/kubernetes-incubator/…