<DIV>Hi devs,</DIV>
<DIV> </DIV>
<DIV>I found a problem which may cause infinite update of instance's attributes in gnocchi.</DIV>
<DIV> </DIV>
<DIV>Let's see the resource definition of instance.</DIV>
<DIV> </DIV>
<DIV> - resource_type: instance<BR> metrics:<BR> - 'instance'<BR> - 'memory'<BR> - 'memory.usage'<BR> - 'memory.resident'<BR> - 'vcpus'<BR> - 'cpu'<BR> - 'cpu_util'<BR> - 'disk.root.size'</DIV>
<DIV>...</DIV>
<DIV> attributes:<BR> host: resource_metadata.host<BR> image_ref: resource_metadata.image_ref_url</DIV>
<DIV>...<BR></DIV>
<DIV>Here is the problem, although they have same attributes, they are *not* same.</DIV>
<DIV> </DIV>
<DIV>Some of them came from nova's notifications and the others are came from ceilometer-compute-agent.</DIV>
<DIV> </DIV>
<DIV>1) Those came from notifications, their attributes looks like</DIV>
<DIV> </DIV>
<DIV>image_ref :<A href="http://10.133.12.125:9292/images/">http://10.133.12.125:9292/images/</A> </DIV>
<DIV>host: compute.lgy-openstack-kilo.novalocal </DIV>
<DIV> </DIV>
<DIV>2) Those came from ceilometer-compute-agent, </DIV>
<DIV>image_ref : <A href="http://10.133.12.125:8774/4994e42421a04beda56fff7d817e810e/images/8d6a9cd9-48ae-4a41-bd13-262a46c93d72">http://10.133.12.125:8774/4994e42421a04beda56fff7d817e810e/images/8d6a9cd9-48ae-4a41-bd13-262a46c93d72</A> </DIV>
<DIV>host:ea8f8e465d9caff06e80a0fda6f30d02725e0b55dc0fd940954cb55c</DIV>
<DIV> </DIV>
<DIV>Such difference will cause alternately and infinitely update of a instance's attributes if we enable nova audit.</DIV>
<DIV> </DIV>
<DIV>So I suggest we seperate these meters which came from notifications to another resource type like "instance_from_notification".</DIV>
<DIV> </DIV>
<DIV>Any other idea?</DIV>
<DIV><BR> </DIV>
<DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; COLOR: #909090">------------------</DIV>
<DIV style="FONT-SIZE: 14px; FONT-FAMILY: Verdana; COLOR: #000">Luo Gangyi
<DIV>
<DIV>luogangyi@chinamobile.com</DIV></DIV></DIV></DIV>
<DIV> </DIV>