<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
<div>
<div>On Nov 3, 2011, at 8:41 AM, Anne Gentle wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi Christian (oh hai list) -<br>
I've answered this a few times recently so I think it's useful to post info to the list. It's a highly requested bit of info. The documentation for "notifications" could be in a couple different areas. There's the the spec/blueprint at
<a href="http://wiki.openstack.org/SystemUsageData" target="_blank">http://wiki.openstack.org/SystemUsageData</a>. I believe that project is a work in progress at
<a href="https://github.com/Cerberus98/yagi" target="_blank">https://github.com/Cerberus98/yagi</a>. (We need to work on a doc plan, Yagi peeps.)<br>
</blockquote>
<div><br>
</div>
<div>I know i've been keeping the wiki pages at <a href="http://wiki.openstack.org/NotificationSystem#Implementation">http://wiki.openstack.org/NotificationSystem#Implementation</a> and  <a href="http://wiki.openstack.org/SystemUsageData">http://wiki.openstack.org/SystemUsageData</a> up
 to date with info on the notification system itself, and currently available system usage data.  Note that these are as of current trunk, since usage data available has been expanded since Diablo release.   </div>
<div>Anne:  is there any other bit of info on the notification system that is needed ?  I'd be happy to spend time chatting with documentation folks about the notification system if that's what it takes to get  some good user docs out there.  </div>
<div><br>
</div>
<div>As far as Yagi itself, it's still very much in development, so things are sketchy atm, but it's simple to run.  If there's a spot where we can throw some docs, we can start doing that. </div>
<div><br>
</div>
<br>
<blockquote type="cite">Also, here's what a startup did:<br>
"<br>
<div>The way we did it was to keep track of everything ourselves since openstack didn't provide metering
<span><span class="il">data</span></span> that we needed.  We would log what size vm was started and the image id along with the timestamp, and then log when it was stopped, resized, etc.  There was a reporting API in our tool that customers could query against
 to pull that information  out and run reports for their <span><span class="il">billing</span></span> systems.</div>
<div><br>
</div>
<div>Most providers and enterprises that I spoke to were happy with that model but REALLY wanted
<span><span class="il">data</span></span> about bandwidth <span><span class="il">usage</span></span> which we weren't able to provide.  Our answer was to correlate the IP of the VM that was running back with their network monitoring logs for invoicing purposes.
  Not the best answer, but all that we were able to do.</div>
<div><br>
</div>
<div>For our customers that used CA 3Tera AppLogic, it managed everything from the hypervisor to the virtual networking stack to the app layer and had a full metering API where we could pull all of the
<span><span class="il">data</span></span> from.  It wasn't the best API, but the <span>
<span class="il">data</span></span> was accurate.  Same with vcloud if I remember correctly."</div>
<br>
Also, from NTT <span class="il">Data</span>, Nati Ueno's code for <span class="il">
billing</span> is here, <br>
<a href="https://github.com/nati/dash_billing" target="_blank">https://github.com/<span>nati</span>/dash_<span class="il">billing</span></a><br>
and you can install it using his stack.sh, but it's not fully tested yet)<br>
<a href="https://github.com/nati/devstack" target="_blank">https://github.com/<span>nati</span>/devstack</a><br>
<br>
I know it's a hotly sought after bit of info. Let me know if this example is the type of info you seek. I'd also like to work on a doc plan for gathering this into the admin guides.<br>
Anne<br>
<br>
<div style="margin: 2em 0pt;" name="sig_d41d8cd98f">
<div style="padding: 5px; font-size: 11px; color: rgb(102, 102, 102); font-family: sans-serif;">
<strong>Anne Gentle</strong> <br>
<a href="mailto:anne@openstack.org" target="_blank">anne@openstack.org</a><br>
<div style="font-size: 10px;"><a href="http://justwriteclick.com/" target="_blank">my blog</a> |
<a href="http://xmlpress.net/publications/conversation-community/" target="_blank">
my book</a> | <a href="http://www.linkedin.com/in/annegentle" target="_blank"><span>LinkedIn</span></a> |
<a href="http://del.icio.us/annegentle" target="_blank">Delicious</a> | <a href="http://twitter.com/annegentle" target="_blank">
Twitter</a> </div>
</div>
</div>
<div class="gmail_quote">On Thu, Nov 3, 2011 at 2:56 AM, Christian Wittwer <span dir="ltr">
<<a href="mailto:wittwerch@gmail.com">wittwerch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
I'm looking for a simple way to get some usage data out of my nova<br>
diablo installation.<br>
I need to know which tenant or user had how much instances running and<br>
for how long. Exactly the value you have in the dashboard, I guess<br>
it's called cpu hours.<br>
To setup a basic accounting I need to get this values over the api, to<br>
put them into a seperated database.<br>
<br>
How can I access these informations through the api?<br>
<br>
Cheers,<br>
Christian<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote>
</div>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br>
</blockquote>
</div>
<br>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>--</div>
<div><span class="Apple-tab-span" style="white-space: pre; "></span>Monsyne M. Dragon</div>
<div><span class="Apple-tab-span" style="white-space: pre; "></span>OpenStack/Nova </div>
<div><span class="Apple-tab-span" style="white-space: pre; "></span>cell 210-441-0965</div>
<div><span class="Apple-tab-span" style="white-space: pre; "></span>work x 5014190</div>
</div>
</div>
</div>
<br>
</body>
</html>