<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">于 2012年10月23日 17:34, Eoghan Glynn 写道:<br>
    </div>
    <blockquote
      cite="mid:2023500821.35945932.1350984880445.JavaMail.root@redhat.com"
      type="cite">
      <pre wrap="">

</pre>
      <blockquote type="cite">
        <pre wrap="">I am testing ceilometer in my devstack virtual machine. Although I
can see the meter data model in the mongodb, I am confused about
some glossary when I test its Web API. I am not very clear about the
" resource" in the " GET /v1/resources",either "source" in the "GET
/v1/sources/(source)/meters/(meter)".
Can someone explain these two concept? Thanks a lot.
</pre>
      </blockquote>
      <pre wrap="">
Hi Yawei,

Good question!

My understanding is that the resources collection refers to the set
of UUIDs identifying the openstack entities (e.g. instance, volume,
image ... etc.) being metered, whereas the source refers to the 
origin of the metering data and is effectively unused right now
as there is only a single source currently (though we could in the
future for example distinguish between metric and metering data
in this way).

Cheers,
Eoghan
</pre>
    </blockquote>
    Thanks Eoghan,<br>
    <br>
        I still have questions about the data in the mongodb.<br>
        First: All the data about "source" in db is  <font
      color="#ff0000">"?"</font>,for example:<br>
    <br>
    -----------------------------------------------------<br>
                <font color="#ff0000">"source": "?",</font><br>
                "metadata": {<br>
                    "fixed_ip_id": null,<br>
                    "host": null,<br>
                    "auto_assigned": false,<br>
                    "pool": "nova",<br>
                    "address": "172.24.4.232"<br>
                }<br>
    ----------------------------------------------------<br>
        is it correct? <br>
    <br>
    second,when I create a instance,there will be meter data created in
    the mongodb as "resource" and "meter",but for volume ,there is no
    any data about volume in the db,so why ?Is there something wrong
    with my devstack or  there is
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <span style="color: rgb(0, 0, 0); font-family: ff-meta-web-pro-1,
      ff-meta-web-pro-2, Arial, 'Helvetica Neue', sans-serif; font-size:
      16px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: 24px; orphans: 2;
      text-align: left; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); display: inline !important;
      float: none; ">configuration file</span> should be modified?<br>
    <br>
    third,I can only see cpu,disk,and network info for instance in the
    meter data by now ,but there is no memory info,so why?<br>
    <br>
    <br>
    thanks<br>
    <br>
    -----------------------<br>
    Yawei  Wu<br>
    Dalian Hi-Think Computer Technology,Corp. <br>
    <br>
    <br>
    <br>
  </body>
</html>