<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    we actually looked at this problem here:
    <a class="moz-txt-link-freetext" href="https://review.openstack.org/#/c/235702/">https://review.openstack.org/#/c/235702/</a><br>
    <br>
    i think we should add support of new attribute instead.<br>
    <br>
    <div class="moz-cite-prefix">On 20/12/2015 10:52 AM, Luo Gangyi
      wrote:<br>
    </div>
    <blockquote cite="mid:tencent_290BB7C012ACDC823F1BFACF@qq.com"
      type="cite">
      <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 moz-do-not-send="true"
          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 moz-do-not-send="true"
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><a class="moz-txt-link-abbreviated" href="mailto:luogangyi@chinamobile.com">luogangyi@chinamobile.com</a></div>
          </div>
        </div>
      </div>
      <div> </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
gord</pre>
  </body>
</html>