<div dir="ltr">Nothing shows when I type command:<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Menlo">vcap@ubuntu:~$ ceilometer sample-list --meter compute.node.cpu</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+-------------+------+------+--------+------+-----------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">| Resource ID | Name | Type | Volume | Unit | Timestamp |</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+-------------+------+------+--------+------+-----------+</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">+-------------+------+------+--------+------+-----------+</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">So, I guess there is no sample data concerning on "compute.node.cpu" in the database.</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">I assume the problem is about the "pipeline.yaml", the pipeline in my devstack system is:</p><p style="margin:0px;font-size:11px;font-family:Menlo"><br></p><p style="margin:0px;font-size:11px;font-family:Menlo">---</p><p style="margin:0px;font-size:11px;font-family:Menlo">sources:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: meter_source</p><p style="margin:0px;font-size:11px;font-family:Menlo"> interval: 600</p><p style="margin:0px;font-size:11px;font-family:Menlo"> meters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "*"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> sinks:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - meter_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: cpu_source</p><p style="margin:0px;font-size:11px;font-family:Menlo"> interval: 600</p><p style="margin:0px;font-size:11px;font-family:Menlo"> meters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "cpu"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> sinks:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - cpu_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: disk_source</p><p style="margin:0px;font-size:11px;font-family:Menlo"> interval: 600</p><p style="margin:0px;font-size:11px;font-family:Menlo"> meters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "disk.read.bytes"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "disk.read.requests"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "disk.write.bytes"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "disk.write.requests"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> sinks:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - disk_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: network_source</p><p style="margin:0px;font-size:11px;font-family:Menlo"> interval: 600</p><p style="margin:0px;font-size:11px;font-family:Menlo"> meters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "network.incoming.bytes"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "network.incoming.packets"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "network.outgoing.bytes"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - "network.outgoing.packets"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> sinks:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - network_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo">sinks:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: meter_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> transformers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> publishers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - notifier://</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: cpu_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> transformers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: "rate_of_change"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> parameters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> target:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> name: "cpu_util"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> unit: "%"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> type: "gauge"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> publishers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - notifier://</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: disk_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> transformers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: "rate_of_change"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> parameters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> source:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> map_from:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> name: "disk\\.(read|write)\\.(bytes|requests)"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> unit: "(B|request)"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> target:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> map_to:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> name: "disk.\\1.\\2.rate"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> unit: "\\1/s"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> type: "gauge"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> publishers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - notifier://</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: network_sink</p><p style="margin:0px;font-size:11px;font-family:Menlo"> transformers:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - name: "rate_of_change"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> parameters:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> source:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> map_from:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> name: "network\\.(incoming|outgoing)\\.(bytes|packets)"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> unit: "(B|packet)"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> target:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> map_to:</p><p style="margin:0px;font-size:11px;font-family:Menlo"> name: "network.\\1.\\2.rate"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> unit: "\\1/s"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> type: "gauge"</p><p style="margin:0px;font-size:11px;font-family:Menlo"> publishers:</p><p style="margin:0px;font-size:11px;font-family:Menlo">
</p><p style="margin:0px;font-size:11px;font-family:Menlo"> - notifier://</p></div><div><br></div><div>Can anyone tell me whether it's true?</div><div><br></div><div><font color="#000000">@<span style="font-family:'normal arial',sans-serif">hangliu, would you please show me your pipeline.yaml, if possible. Thanks!</span></font></div><div><font color="#000000"><span style="font-family:'normal arial',sans-serif"><br></span></font></div><div><font color="#000000"><span style="font-family:'normal arial',sans-serif">--</span></font></div><div><font color="#000000"><span style="font-family:'normal arial',sans-serif">Regards,</span></font></div><div><font color="#000000"><span style="font-family:'normal arial',sans-serif">Frank</span></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-06 22:37 GMT+08:00 Neal, Phil <span dir="ltr"><<a href="mailto:phil.neal@hp.com" target="_blank">phil.neal@hp.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Frank, I'd echo Hang Liu's suggestion, but also encourage you to take this question to the general OpenStack mailing<br>
list (see <a href="https://wiki.openstack.org/wiki/Mailing_Lists" target="_blank">https://wiki.openstack.org/wiki/Mailing_Lists</a>).<br>
<br>
- Phil<br>
<br>
From: Hang H Liu [mailto:<a href="mailto:hangliu@cn.ibm.com">hangliu@cn.ibm.com</a>]<br>
Sent: Wednesday, November 05, 2014 7:36 AM<br>
<span class="im HOEnZb">To: OpenStack Development Mailing List (not for usage questions)<br>
</span><div class="HOEnZb"><div class="h5">Subject: Re: [openstack-dev] [ceilometer] unable to collect compute.node.cpu.* data<br>
<br>
Same steps I can get below results. <br>
You may need debug into get_meters() in ceilometer/storage/impl_sqlalchemy.py to see if some filters are taking effect.<br>
<br>
<br>
localadmin@ostest2:~/devstack$ ceilometer meter-list<br>
+---------------------------------+------------+---------+--------------------------------------+----------------------------------+----------------------------------+<br>
| Name | Type | Unit | Resource ID | User ID | Project ID |<br>
+---------------------------------+------------+---------+--------------------------------------+----------------------------------+----------------------------------+<br>
| compute.node.cpu.frequency | gauge | MHz | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.idle.percent | gauge | % | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.idle.time | cumulative | ns | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.iowait.percent | gauge | % | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.iowait.time | cumulative | ns | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.kernel.percent | gauge | % | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.kernel.time | cumulative | ns | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.percent | gauge | % | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.user.percent | gauge | % | ostest2_ostest2 | None | None |<br>
| compute.node.cpu.user.time | cumulative | ns | ostest2_ostest2 | None <br>
<br>
<br>
<br>
"Lu, Lianhao" <<a href="mailto:lianhao.lu@intel.com">lianhao.lu@intel.com</a>> 写于 2014/11/05 15:23:14:<br>
<br>
> From: "Lu, Lianhao" <<a href="mailto:lianhao.lu@intel.com">lianhao.lu@intel.com</a>><br>
> To: "OpenStack Development Mailing List (not for usage questions)"<br>
> <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
> Date: 2014/11/05 15:31<br>
> Subject: Re: [openstack-dev] [ceilometer] unable to collect<br>
> compute.node.cpu.* data<br>
><br>
> Hi Frank,<br>
> <br>
> Could you try ‘celometer sample-list’ to see if the compute.node.cpu<br>
> samples are there?<br>
> <br>
> -Lianhao<br>
> <br>
> From: Du Jun [mailto:<a href="mailto:dj199008@gmail.com">dj199008@gmail.com</a>]<br>
> Sent: Wednesday, November 05, 2014 3:44 AM<br>
> To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
> Subject: [openstack-dev] [ceilometer] unable to collect<br>
> compute.node.cpu.* data<br>
> <br>
> Hi all,<br>
> <br>
> I attempt to collect compute.node.cpu as the following link mentions:<br>
> <br>
> <a href="http://docs.openstack.org/developer/ceilometer/measurements.html#compute-nova" target="_blank">http://docs.openstack.org/developer/ceilometer/measurements.html#compute-nova</a><br>
> <br>
> I set:<br>
> <br>
> compute_monitors = ComputeDriverCPUMonitor<br>
> <br>
> in /etc/nova/nova.conf and restart nova-compute, nova-scheduler,<br>
> ceilometer-agent-notification, ceilometer-api, ceilometer-collector.<br>
> <br>
> From ceilometer-agent-notification's log, I can see agent transform<br>
> and publish data samples compute.node.cpu.*<br>
> <br>
> What's more, from ceilometer database, I can see all the meters<br>
> compute.node.cpu.*<br>
> <br>
> mysql> select * from meter;<br>
> +----+---------------------------------+------------+-----------+<br>
> | id | name | type | unit |<br>
> +----+---------------------------------+------------+-----------+<br>
> | 39 | compute.node.cpu.frequency | gauge | MHz |<br>
> | 41 | compute.node.cpu.idle.percent | gauge | % |<br>
> | 38 | compute.node.cpu.idle.time | cumulative | ns |<br>
> | 45 | compute.node.cpu.iowait.percent | gauge | % |<br>
> | 42 | compute.node.cpu.iowait.time | cumulative | ns |<br>
> | 36 | compute.node.cpu.kernel.percent | gauge | % |<br>
> | 44 | compute.node.cpu.kernel.time | cumulative | ns |<br>
> | 37 | compute.node.cpu.percent | gauge | % |<br>
> | 43 | compute.node.cpu.user.percent | gauge | % |<br>
> | 40 | compute.node.cpu.user.time | cumulative | ns |<br>
> <br>
> <br>
> However, when I type<br>
> <br>
> ceilometer meter-list<br>
> <br>
> It shows nothing about compute.node.cpu.*, so I wonder what's wrong<br>
> with my steps.<br>
> <br>
> --<br>
> Regards,<br>
> Frank_______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>