That's fantastic!<br><br>What I mind is that the counters only should gather event info.<br><br>Maybe multiple counters listening, collecting info about the system. But only one persist the event.<br><br>Other process agreggates the data and creates different views/reports/billing, this should be outside of openstack (since it depends on the business rules, not depends on the infrastructure)<br>
<br>The agreggator, also should offer an api for polling or can be configured throught drivers to push the the 3rd<br>systems<br><br>Now, in my implementation i'm putting all the stuff on a directory but it can be as well:<br>
<br>- AMQP <br>- SQL / NoSQL<br><br>(the persistent layer shold be interchangeable)<br><br>So as response to your duration question, this think is out scope for the counter tasks.<br><br><br><br><div class="gmail_quote">On Wed, May 9, 2012 at 5:30 PM, Doug Hellmann <span dir="ltr"><<a href="mailto:doug.hellmann@dreamhost.com" target="_blank">doug.hellmann@dreamhost.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div class="im">On Tue, May 8, 2012 at 7:19 PM, Luis Gervaso <span dir="ltr"><<a href="mailto:luis@woorea.es" target="_blank">luis@woorea.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>I have uploaded a toy version of ceilometer (java implementation).<br><br>It does implement the first two counters (instance : rabbitmq listener and cpu : polling from libvirt)<br><br>i need more clarification on the meaining:<br>


<br>counter_volume<br>counter_duration<br>counter_datetaime<br><br>I hope this helps to figure out how to agreggate these data.<br><br><a href="http://github.com/woorea/ceilometer-java" target="_blank">http://github.com/woorea/ceilometer-java</a></blockquote>

<div><br></div></div><div>Nice!</div><div><br></div><div>I have also been experimenting. I have some Python code in <a href="https://github.com/dhellmann/metering-prototype" target="_blank">https://github.com/dhellmann/metering-prototype</a> that listens for notifications related to instances (create, delete, exists) and converts them to counter output (see spy.py). There is also a pair of scripts for recording an event stream and playing it back (useful for testing, see recorder.py and player.py). I don't have any libvirt polling, yet, though.</div>

<div><br></div><div>In the course of looking at the notifications being generated for different scenarios, I discovered that the instance delete messages do not have any duration information right now. I don't know if that is a bug, or if the idea is to figure out the durations from looking at the most recent "exists" event. What do other people think?</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Doug</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>-------------------------------------------<br>Luis Alberto Gervaso Martin<div>Woorea Solutions, S.L<br>CEO & CTO<br>mobile: (+34) 627983344<br><a href="mailto:luis.gervaso@gmail.com" target="_blank">luis@</a><a href="http://woorea.es/" target="_blank">woorea.es</a></div>
<br>