Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Nick Barcet
On 04/23/2012 10:45 PM, Doug Hellmann wrote: On Mon, Apr 23, 2012 at 4:14 PM, Brian Schott brian.sch...@nimbisservices.com mailto:brian.sch...@nimbisservices.com wrote: Doug, Do we mirror the table structure of nova, etc. and add created/modified columns? Or do

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Sandy Walsh
I think we have support for this currently in some fashion, Dragon? -S On 04/24/2012 12:55 AM, Loic Dachary wrote: Metering needs to account for the volume of data sent to external network destinations ( i.e. n4 in http://wiki.openstack.org/EfficientMetering ) or the disk I/O etc. This

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Monsyne Dragon
Yes, we emit bandwidth (bytes in/out) on a per VIF basis from each instance The event has the somewhat generic name of 'compute.instance.exists' and is emitted on an periodic basis, currently by a cronjob. Currently, we only populate bandwidth data from XenServer, but if the hook is

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Loic Dachary
On 04/24/2012 03:06 PM, Monsyne Dragon wrote: Yes, we emit bandwidth (bytes in/out) on a per VIF basis from each instance The event has the somewhat generic name of 'compute.instance.exists' and is emitted on an periodic basis, currently by a cronjob. Currently, we only populate bandwidth

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Monsyne Dragon
On Apr 24, 2012, at 9:03 AM, Loic Dachary wrote: On 04/24/2012 03:06 PM, Monsyne Dragon wrote: Yes, we emit bandwidth (bytes in/out) on a per VIF basis from each instance The event has the somewhat generic name of 'compute.instance.exists' and is emitted on an periodic basis, currently by a

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Loic Dachary
On 04/24/2012 04:45 PM, Monsyne Dragon wrote: On Apr 24, 2012, at 9:03 AM, Loic Dachary wrote: On 04/24/2012 03:06 PM, Monsyne Dragon wrote: Yes, we emit bandwidth (bytes in/out) on a per VIF basis from each instance The event has the somewhat generic name of 'compute.instance.exists'

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Luis Gervaso
Probably an extra audit system is required. I'm searching for solutions in the IT market. Regards On Tue, Apr 24, 2012 at 6:00 PM, Loic Dachary l...@enovance.com wrote: ** On 04/24/2012 04:45 PM, Monsyne Dragon wrote: On Apr 24, 2012, at 9:03 AM, Loic Dachary wrote: On 04/24/2012 03:06

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Luis Gervaso
Hi Monsyne, I have set the notification_driver param, but no notification.* queues created. I'm using devstack stable/essex. stack@ubuntu:/$ sudo rabbitmqctl list_queues Listing queues ... volume_fanout_e0923a8bbb9f45dc9e63d382796a4c8f 0 cert.ubuntu 0 consoleauth.ubuntu 0 compute 0

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Brian Schott
I take it that the instance manager doesn't generate any kind of heartbeat, so whatever monitoring/archiving service we do should internally poll the status over MQ? - Brian Schott, CTO Nimbis Services, Inc. brian.sch...@nimbisservices.com ph:

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Luis Gervaso
This kind of messages are coming from nova exchange aprox. each 60 secs Can be this considered as a heartbeat for you? [x] Received '{_context_roles: [admin], _msg_id: a2d13735baad4613b89c6132e0fa8302, _context_read_deleted: no, _context_request_id: req-d7ffbe78-7a9c-4d20-9ac5-3e56951526fe,

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Brian Schott
Yeah, but does that mean the instance is alive and billable :-)? I guess that counts! I thought they were only in response to external API/admin requests. - Brian Schott, CTO Nimbis Services, Inc. brian.sch...@nimbisservices.com ph: 443-274-6064

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Luis Gervaso
I think so. If it is in response or not, it's a truly heartbeat On Tue, Apr 24, 2012 at 9:46 PM, Brian Schott brian.sch...@nimbisservices.com wrote: Yeah, but does that mean the instance is alive and billable :-)? I guess that counts! I thought they were only in response to external

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Monsyne Dragon
On Apr 24, 2012, at 11:00 AM, Loic Dachary wrote: On 04/24/2012 04:45 PM, Monsyne Dragon wrote: On Apr 24, 2012, at 9:03 AM, Loic Dachary wrote: On 04/24/2012 03:06 PM, Monsyne Dragon wrote: Yes, we emit bandwidth (bytes in/out) on a per VIF basis from each instance The event has the

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Monsyne Dragon
On Apr 24, 2012, at 2:31 PM, Brian Schott wrote: I take it that the instance manager doesn't generate any kind of heartbeat, so whatever monitoring/archiving service we do should internally poll the status over MQ? Actually, it generates periodic 'heartbeat' events ('exists' events) for each

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-24 Thread Monsyne Dragon
On Apr 24, 2012, at 2:46 PM, Brian Schott wrote: Yeah, but does that mean the instance is alive and billable :-)? I guess that counts! I thought they were only in response to external API/admin requests. - Brian Schott, CTO Nimbis Services,

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Nick Barcet
Hello Luis, I presented a blueprint last week [1] which proposes to clearly differentiate metering from the overall billing process. It is my understanding that billing is too complex a beast to be solved for each requirement in a satisfactory way and have therefore proposed that we should first

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Ahn, Jaesuk
Hi, Although metering and billing always comes together for the deployment, for the sake of clarity, I also think metering should be a separate project from the billing, especially in openstack. (As you mentioned it, billing is complex and has too many different requirements per provider)

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Nick Barcet
On 04/23/2012 11:17 AM, Ahn, Jaesuk wrote: Hi, Although metering and billing always comes together for the deployment, for the sake of clarity, I also think metering should be a separate project from the billing, especially in openstack. (As you mentioned it, billing is complex and has

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Alexey Ababilov
Hi! We have developed Nova Billing v2. Its documentation is currently available at http://aababilov.github.com/nova-billing-doc.github.com/. The documentation includes a glossary and architecture and API descriptions. Nova Billing v2 is a totally new solution. Its API and architecture were

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Nick Barcet
On 04/23/2012 04:39 PM, Alexey Ababilov wrote: Hi! We have developed Nova Billing v2. Its documentation is currently available at http://aababilov.github.com/nova-billing-doc.github.com/. The documentation includes a glossary and architecture and API descriptions. Nova Billing v2 is a

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Kevin L. Mitchell
On Sun, 2012-04-22 at 20:50 +0200, Luis Gervaso wrote: I want to share the architecture i am developing in order to perform the monitorig / billing OpenStack support: 1. AMQP Client which listen to RabbitMQ / QPid (this should be interchangeable) (Own Stuff or ServiceMix / Camel) 2.

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Monsyne Dragon
This already exists in trunk. The Notification system was designed specifically to feed billing and monitoring systems. Basically, we don't want Nova/Glance/etc to be in the business of trying to determine billing logic, since it is different for pretty much everyone, so we just emit

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Luis Gervaso
Nick, I want contribute in the discussion group. I have seen yagi implementation, and i like it. I like the protocol. But I think that it's a protocol that fits very well when no sensible data is involved (content feeds). When money, resources, companies are involved i think we need to use a

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Doug Hellmann
On Sun, Apr 22, 2012 at 5:29 PM, Brian Schott brian.sch...@nimbisservices.com wrote: Dough is a proposed billing service. There was a session at Folsom design summit. This is a practical project for an OpenStack provider with test code on github.

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Brian Schott
Is there a document somewhere on what events the services emit? - Brian Schott, CTO Nimbis Services, Inc. brian.sch...@nimbisservices.com ph: 443-274-6064 fx: 443-274-6060 On Apr 23, 2012, at 12:39 PM, Monsyne Dragon wrote: This already

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Luis Gervaso
I have been looking at : http://wiki.openstack.org/SystemUsageData On Mon, Apr 23, 2012 at 7:35 PM, Brian Schott brian.sch...@nimbisservices.com wrote: Is there a document somewhere on what events the services emit? - Brian Schott, CTO Nimbis

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Matt Dietz
...@woorea.esmailto:l...@woorea.es Cc: openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net openstack@lists.launchpad.netmailto:openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed This already exists in trunk. The Notification system

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Brian Schott
So, we could build on this. No reason to reinvent, but we might want to expand the number of events. I'm concerned about things like what happens when flavors change over time. Maybe the answer is, always append to the flavor/instance-type table. The code I remember and the admin interface

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Nick Barcet
On 04/23/2012 07:06 PM, Luis Gervaso wrote: Nick, I want contribute in the discussion group. Luis, I just sent your an invite to the doodle to pick the best time for this irc meeting. Once the date will have been finalized (I'll close the poll tomorrow EOD), I'll announce the date, time and

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Zhongyue Luo
Brian, Dough isn't dependent on Horizon. Dough has a client that can be inserted anywhere to notify the start/end of using a resource. We inserted the client in horizon just to try out the many ways our billing system could be integrated with our existing deployment. We are planning to make a

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Joshua Harlow
I like http://wiki.openstack.org/SystemUsageData I just wonder if there should be offical formats for the data sent across the wire. Or at least high level formats that define the data, maybe in a simple python map style layout. With examples would be awesome. On 4/23/12 10:40 AM, Luis

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Luis Gervaso
Joshua, I have performed a create instance operation and here is an example data obtained from stable/essex rabbitmq nova catch all exchange. [*] Waiting for messages. To exit press CTRL+C [x] Received '{_context_roles: [admin], _msg_id: a2d13735baad4613b89c6132e0fa8302, _context_read_deleted:

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Alan Sill
The following links to work from OGF in the usage accounting and tracking area might be useful. First of all, we have the UsageRecord format (UR), which has been used in a variety of distributed computing environments for tracking usage. It defines an XML-based format for exchange of usage

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Sandy Walsh
Flavor information is copied to the Instance table on creation so the Flavors can change and still be tracked in the Instance. It may just need to be sent in the notification payload. The current events in the system are documented here: http://wiki.openstack.org/SystemUsageData -Sandy On

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Joshua Harlow
Great, Now we just need to officialize those as a first step to making a real interchange format that can be versioned, documented... and all the other goodies u would normally expect. On 4/23/12 12:26 PM, Luis Gervaso l...@woorea.es wrote: Joshua, I have performed a create instance

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Sandy Walsh
StackTach is a Django-based web interface for capturing, displaying and navigating OpenStack notifications https://github.com/rackspace/stacktach -S On 04/23/2012 04:26 PM, Luis Gervaso wrote: Joshua, I have performed a create instance operation and here is an example data obtained from

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Monsyne Dragon
This looks like just the standard RPC traffic. You need to turn notifications on (set: notification_driver=nova.notifier.rabbit_notifier in nova's config file) and listen on the notification.* queues On Apr 23, 2012, at 2:26 PM, Luis Gervaso wrote: Joshua, I have performed a create instance

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-23 Thread Loic Dachary
On 04/23/2012 10:09 PM, Sandy Walsh wrote: Flavor information is copied to the Instance table on creation so the Flavors can change and still be tracked in the Instance. It may just need to be sent in the notification payload. The current events in the system are documented here:

[Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
Hi, I want to share the architecture i am developing in order to perform the monitorig / billing OpenStack support: 1. AMQP Client which listen to RabbitMQ / QPid (this should be interchangeable) (Own Stuff or ServiceMix / Camel) 2. Events should be stored on a NoSQL document oriented database

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Endre Karlson
What about using the Dough project? Endre. 2012/4/22 Endre Karlson endre.karl...@gmail.com What about using the Dough project ? Endre. 2012/4/22 Luis Gervaso l...@woorea.es Hi, I want to share the architecture i am developing in order to perform the monitorig / billing OpenStack

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
Dough is the proposed billing platform/product (where the billing rules live), isn't it? I don't know Dough enough, so please me correct me if i'm wrong. I'm trying to define a generic/agnostic integration process, obviously where Dough can fit perfectly. I would like it become part to the

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Matt Joyce
Correct me if I am wrong but mongo has not been used in openstack previously? What is the benefit here that justifies bringing in new technology? Also are you planning an active polling process over AMPQ or passive listening for the monitor? It seems to me that most of the main components today

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
On Sun, Apr 22, 2012 at 9:57 PM, Matt Joyce m...@nycresistor.com wrote: Correct me if I am wrong but mongo has not been used in openstack previously? What is the benefit here that justifies bringing in new technology? Mongo is document oriented, which i consider fits perfectly with the

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Brian Schott
Have you started a blueprint and/or Etherpad? We should do that. Couple of comments: 1. I had an idea for naming the metering service after Nipper, the famous RCA dog :-) http://en.wikipedia.org/wiki/Nipper 2. A common metering service that listens on Rabbit/ZeroMQ bus for registering events

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Brian Schott
I see this blueprint for metering, but none for Dough currently. http://wiki.openstack.org/EfficientMetering Here are the Dough slides, however: http://www.slideshare.net/lzyeval/dough-openstack-billing-project We collectively need to talk more about the user scenarios, because I don't think

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Endre Karlson
What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.com What is Dough then ? 2012/4/22 Brian Schott brian.sch...@nimbisservices.com I see this blueprint for metering, but none for Dough currently. http://wiki.openstack.org/EfficientMetering

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
my comments below On Sun, Apr 22, 2012 at 10:32 PM, Brian Schott brian.sch...@nimbisservices.com wrote: Have you started a blueprint and/or Etherpad? We should do that. Couple of comments: 1. I had an idea for naming the metering service after Nipper, the famous RCA dog :-)

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Atul Jha
[endre.karl...@gmail.com] Sent: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto:endre.karl...@gmail.com

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
On Sun, Apr 22, 2012 at 11:18 PM, Luis Gervaso l...@woorea.es wrote: I think Dough takes care about pricing and billing. I have proposed an arch and technologies to fill the gap between openstack and whatever billing system / monitoring system. On Sun, Apr 22, 2012 at 10:57 PM, Endre

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Brian Schott
Dough is a proposed billing service. There was a session at Folsom design summit. This is a practical project for an OpenStack provider with test code on github. http://summit.openstack.org/sessions/view/37 The billing system consists of three components. 1) API Server, which receives

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
...@gmail.com] Sent: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto: endre.karl...@gmail.com What

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Brian Schott
-bounces+atul.jha=csscorp@lists.launchpad.net] on behalf of Endre Karlson [endre.karl...@gmail.com] Sent: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Matt Joyce
: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto:endre.karl...@gmail.com What is Dough then ? 2012

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Endre Karlson
: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto: endre.karl...@gmail.com What is Dough then ? 2012/4/22 Brian Schott brian.sch...@nimbisservices.commailto: brian.sch

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
@lists.launchpad.net [openstack-bounces+atul.jha=csscorp@lists.launchpad.net] on behalf of Endre Karlson [endre.karl...@gmail.com] Sent: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Brian Schott
...@gmail.com] Sent: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto:endre.karl...@gmail.com What

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto: endre.karl...@gmail.com What is Dough then ? 2012/4/22 Brian Schott brian.sch...@nimbisservices.commailto

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Zhongyue Luo
: Monday, April 23, 2012 2:27 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto: endre.karl...@gmail.com What is Dough

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Luis Gervaso
] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto: endre.karl...@gmail.com What is Dough then ? 2012/4/22 Brian Schott brian.sch...@nimbisservices.commailto: brian.sch...@nimbisservices.com I see

Re: [Openstack] Monitoring / Billing Architecture proposed

2012-04-22 Thread Brian Schott
To: openstack@lists.launchpad.net Subject: Re: [Openstack] Monitoring / Billing Architecture proposed What is Dough then compared to what you want to do ? 2012/4/22 Endre Karlson endre.karl...@gmail.commailto:endre.karl...@gmail.com What is Dough then ? 2012/4/22 Brian Schott