For example: $http http://localhost:5050/slave\(1\)/state.json |jq .completed_frameworks\[0\].completed_executors\[0\].completed_tasks\[0\].resources
{ "cpus": 1, "disk": 0, "mem": 128 } You could get resource which allocated to task. Is it match your expected? On Fri, Aug 7, 2015 at 12:48 PM, Sam Chen <usultra...@gmail.com> wrote: > Haosdent , > Let me bring one example on the table . We are using Mesos and Marathon , > and deployed two tier application (web tier is Tomcat , database layer is > mysql) . > We are frustrated in terms of how to charge this service, so that we are > thinking whether mesos or marathon can have metering service to let us > reference . > Hope its clear :) > > Sam > > On Fri, Aug 7, 2015 at 12:33 PM, haosdent <haosd...@gmail.com> wrote: > >> You mean metering by resource? You could get every task resource usage >> through send http request to state.json . >> >> On Fri, Aug 7, 2015 at 12:23 PM, Sam Chen <usultra...@gmail.com> wrote: >> >>> Guys , >>> We are planning to use Mesos as production platform and based on >>> Openstack , My question is , Is there any solution for metering ? then >>> billing . Since we want to have our platform online and have >>> pay-as-you-go mode . Anyone have any suggsetion ? Very appreciated . >>> >>> >>> Sam >>> >> >> >> >> -- >> Best Regards, >> Haosdent Huang >> > > -- Best Regards, Haosdent Huang