<br><br><div class="gmail_quote">On Fri, Aug 17, 2012 at 5:52 AM, Julien Danjou <span dir="ltr"><<a href="mailto:julien@danjou.info" target="_blank">julien@danjou.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Aug 17 2012, John Tran wrote:<br>
<br>
Hi John,<br>
<div class="im"><br>
> * Source - left as '?'<br>
<br>
</div>For now, yes.<br></blockquote><div><br></div><div>See <a href="https://bugs.launchpad.net/ceilometer/+bug/1038043">https://bugs.launchpad.net/ceilometer/+bug/1038043</a></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
> * user_id - obtained by looking at the instance's db obj<br>
> * project_id - same as user_id<br>
<br>
</div>Yes.<br>
<div class="im"><br>
> * resource_id - <unique_id of the vnic?>   ** the vnic xml data<br>
> freturned from libvirt has a filtterref that looks like: <filterref<br>
> filter='nova-instance-instance-00000001-fa163e71ec6d'><br>
<br>
</div>That looks good.<br></blockquote><div><br></div><div>Yes, that's good, unless you can get a UUID from Quantum.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
> * resource_metadata -  < for instance db obj or for vnic xml data> ?<br>
<br>
</div>For vnic. But you can include anything you want here, so I would include<br>
everything you know about the vnic plus a key named 'instance_id'<br>
pointing to the id of the instance, so if needed it can be linked to the<br>
original instance.<br></blockquote><div><br></div><div>+1</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Based on your example that would include the following keys IMHO:<br>
- mac_address<br>
- source_bridge<br>
- target_dev<br>
- alias_name<br>
- ip<br>
- netmask<br>
- network<br>
<div class="im"><br>
> * meter_type - 'cumulative'    ** what are the other options ?<br>
<br>
</div>You have 'absolute' or 'delta', see counter.py. If the counter is never<br>
reset to 0, you want cumulative, yes.<br>
<div class="im"><br>
> * meter_volume - <value of the meter><br>
> * meter_duration - <time value><br>
<br>
</div>Yep.<br></blockquote><div><br></div><div>Are we actually using the duration value anywhere, yet? I think I've seen it set to None or 0 in all of the other counters, but I could be remembering incorrectly.</div>
<div><br></div><div>Doug</div><div><br></div></div>