[openstack-dev] [metering] question about pollster counters

John Tran njhtran at gmail.com
Fri Aug 17 15:26:17 UTC 2012


Excellent!  Thanks for clearing that all up.

On Fri, Aug 17, 2012 at 4:45 AM, Doug Hellmann
<doug.hellmann at dreamhost.com> wrote:
>
>
> On Fri, Aug 17, 2012 at 5:52 AM, Julien Danjou <julien at danjou.info> wrote:
>>
>> On Fri, Aug 17 2012, John Tran wrote:
>>
>> Hi John,
>>
>> > * Source - left as '?'
>>
>> For now, yes.
>
>
> See https://bugs.launchpad.net/ceilometer/+bug/1038043
>
>>
>>
>> > * user_id - obtained by looking at the instance's db obj
>> > * project_id - same as user_id
>>
>> Yes.
>>
>> > * resource_id - <unique_id of the vnic?>   ** the vnic xml data
>> > freturned from libvirt has a filtterref that looks like: <filterref
>> > filter='nova-instance-instance-00000001-fa163e71ec6d'>
>>
>> That looks good.
>
>
> Yes, that's good, unless you can get a UUID from Quantum.
>
>>
>>
>> > * resource_metadata -  < for instance db obj or for vnic xml data> ?
>>
>> For vnic. But you can include anything you want here, so I would include
>> everything you know about the vnic plus a key named 'instance_id'
>> pointing to the id of the instance, so if needed it can be linked to the
>> original instance.
>
>
> +1
>
>>
>>
>> Based on your example that would include the following keys IMHO:
>> - mac_address
>> - source_bridge
>> - target_dev
>> - alias_name
>> - ip
>> - netmask
>> - network
>>
>> > * meter_type - 'cumulative'    ** what are the other options ?
>>
>> You have 'absolute' or 'delta', see counter.py. If the counter is never
>> reset to 0, you want cumulative, yes.
>>
>> > * meter_volume - <value of the meter>
>> > * meter_duration - <time value>
>>
>> Yep.
>
>
> 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.
>
> Doug
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



More information about the OpenStack-dev mailing list