<html><body>
<p><font size="2" face="sans-serif">You didn't provide the full name of the meter. Here are results in my system.</font><br>
<br>
<font size="2" face="sans-serif">localadmin@ostest2:~/devstack$ ceilometer sample-list -m compute.node.cpu</font><br>
<font size="2" face="sans-serif">+-------------+------+------+--------+------+-----------+</font><br>
<font size="2" face="sans-serif">| Resource ID | Name | Type | Volume | Unit | Timestamp |</font><br>
<font size="2" face="sans-serif">+-------------+------+------+--------+------+-----------+</font><br>
<font size="2" face="sans-serif">+-------------+------+------+--------+------+-----------+</font><br>
<br>
<font size="2" face="sans-serif">localadmin@ostest2:~/devstack$ ceilometer sample-list -m compute.node.cpu.idle.time | head</font><br>
<font size="2" face="sans-serif">+-----------------+----------------------------+------------+-----------------+------+----------------------------+</font><br>
<font size="2" face="sans-serif">| Resource ID | Name | Type | Volume | Unit | Timestamp |</font><br>
<font size="2" face="sans-serif">+-----------------+----------------------------+------------+-----------------+------+----------------------------+</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.876353234e+16 | ns | 2014-11-07T13:15:06.580099 |</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.876282715e+16 | ns | 2014-11-07T13:14:06.587392 |</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.87621264e+16 | ns | 2014-11-07T13:13:06.556272 |</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.876141325e+16 | ns | 2014-11-07T13:12:05.596962 |</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.876070965e+16 | ns | 2014-11-07T13:11:05.576771 |</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.875998092e+16 | ns | 2014-11-07T13:10:03.597978 |</font><br>
<font size="2" face="sans-serif">| ostest2_ostest2 | compute.node.cpu.idle.time | cumulative | 3.87592522e+16 | ns | 2014-11-07T13:09:01.583991 |</font><br>
<font size="2" face="sans-serif"><br>
<br>
Best Regards,<br>
Liu, Hang(Henry) <br>
</font><tt><font size="2">_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="2">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size="2"><br>
</font></tt><font size="2" face="sans-serif"><br>
</font><br>
<tt><font size="2">Du Jun <dj199008@gmail.com> 写于 2014/11/07 15:46:21:<br>
<br>
> From: Du Jun <dj199008@gmail.com></font></tt><br>
<tt><font size="2">> To: "OpenStack Development Mailing List (not for usage questions)" <br>
> <openstack-dev@lists.openstack.org></font></tt><br>
<tt><font size="2">> Date: 2014/11/07 15:50</font></tt><br>
<tt><font size="2">> Subject: Re: [openstack-dev] [ceilometer] unable to collect <br>
> compute.node.cpu.* data</font></tt><br>
<tt><font size="2">> <br>
> Nothing shows when I type command:</font></tt><br>
<tt><font size="2">> <br>
> vcap@ubuntu:~$ ceilometer sample-list --meter compute.node.cpu</font></tt><br>
<tt><font size="2">> +-------------+------+------+--------+------+-----------+</font></tt><br>
<tt><font size="2">> | Resource ID | Name | Type | Volume | Unit | Timestamp |</font></tt><br>
<tt><font size="2">> +-------------+------+------+--------+------+-----------+</font></tt><br>
<tt><font size="2">> +-------------+------+------+--------+------+-----------+</font></tt><br>
<tt><font size="2">> <br>
> So, I guess there is no sample data concerning on "compute.node.cpu"<br>
> in the database.</font></tt><br>
<tt><font size="2">> <br>
> I assume the problem is about the "pipeline.yaml", the pipeline in <br>
> my devstack system is:</font></tt><br>
<tt><font size="2">> <br>
> ---</font></tt><br>
<tt><font size="2">> sources:</font></tt><br>
<tt><font size="2">> - name: meter_source</font></tt><br>
<tt><font size="2">> interval: 600</font></tt><br>
<tt><font size="2">> meters:</font></tt><br>
<tt><font size="2">> - "*"</font></tt><br>
<tt><font size="2">> sinks:</font></tt><br>
<tt><font size="2">> - meter_sink</font></tt><br>
<tt><font size="2">> - name: cpu_source</font></tt><br>
<tt><font size="2">> interval: 600</font></tt><br>
<tt><font size="2">> meters:</font></tt><br>
<tt><font size="2">> - "cpu"</font></tt><br>
<tt><font size="2">> sinks:</font></tt><br>
<tt><font size="2">> - cpu_sink</font></tt><br>
<tt><font size="2">> - name: disk_source</font></tt><br>
<tt><font size="2">> interval: 600</font></tt><br>
<tt><font size="2">> meters:</font></tt><br>
<tt><font size="2">> - "disk.read.bytes"</font></tt><br>
<tt><font size="2">> - "disk.read.requests"</font></tt><br>
<tt><font size="2">> - "disk.write.bytes"</font></tt><br>
<tt><font size="2">> - "disk.write.requests"</font></tt><br>
<tt><font size="2">> sinks:</font></tt><br>
<tt><font size="2">> - disk_sink</font></tt><br>
<tt><font size="2">> - name: network_source</font></tt><br>
<tt><font size="2">> interval: 600</font></tt><br>
<tt><font size="2">> meters:</font></tt><br>
<tt><font size="2">> - "network.incoming.bytes"</font></tt><br>
<tt><font size="2">> - "network.incoming.packets"</font></tt><br>
<tt><font size="2">> - "network.outgoing.bytes"</font></tt><br>
<tt><font size="2">> - "network.outgoing.packets"</font></tt><br>
<tt><font size="2">> sinks:</font></tt><br>
<tt><font size="2">> - network_sink</font></tt><br>
<tt><font size="2">> sinks:</font></tt><br>
<tt><font size="2">> - name: meter_sink</font></tt><br>
<tt><font size="2">> transformers:</font></tt><br>
<tt><font size="2">> publishers:</font></tt><br>
<tt><font size="2">> - notifier://</font></tt><br>
<tt><font size="2">> - name: cpu_sink</font></tt><br>
<tt><font size="2">> transformers:</font></tt><br>
<tt><font size="2">> - name: "rate_of_change"</font></tt><br>
<tt><font size="2">> parameters:</font></tt><br>
<tt><font size="2">> target:</font></tt><br>
<tt><font size="2">> name: "cpu_util"</font></tt><br>
<tt><font size="2">> unit: "%"</font></tt><br>
<tt><font size="2">> type: "gauge"</font></tt><br>
<tt><font size="2">> scale: "100.0 / (10**9 * <br>
> (resource_metadata.cpu_number or 1))"</font></tt><br>
<tt><font size="2">> publishers:</font></tt><br>
<tt><font size="2">> - notifier://</font></tt><br>
<tt><font size="2">> - name: disk_sink</font></tt><br>
<tt><font size="2">> transformers:</font></tt><br>
<tt><font size="2">> - name: "rate_of_change"</font></tt><br>
<tt><font size="2">> parameters:</font></tt><br>
<tt><font size="2">> source:</font></tt><br>
<tt><font size="2">> map_from:</font></tt><br>
<tt><font size="2">> name: "disk\\.(read|write)\\.(bytes|requests)"</font></tt><br>
<tt><font size="2">> unit: "(B|request)"</font></tt><br>
<tt><font size="2">> target:</font></tt><br>
<tt><font size="2">> map_to:</font></tt><br>
<tt><font size="2">> name: "disk.\\1.\\2.rate"</font></tt><br>
<tt><font size="2">> unit: "\\1/s"</font></tt><br>
<tt><font size="2">> type: "gauge"</font></tt><br>
<tt><font size="2">> publishers:</font></tt><br>
<tt><font size="2">> - notifier://</font></tt><br>
<tt><font size="2">> - name: network_sink</font></tt><br>
<tt><font size="2">> transformers:</font></tt><br>
<tt><font size="2">> - name: "rate_of_change"</font></tt><br>
<tt><font size="2">> parameters:</font></tt><br>
<tt><font size="2">> source:</font></tt><br>
<tt><font size="2">> map_from:</font></tt><br>
<tt><font size="2">> name: "network\\.(incoming|outgoing)\\.(bytes|packets)"</font></tt><br>
<tt><font size="2">> unit: "(B|packet)"</font></tt><br>
<tt><font size="2">> target:</font></tt><br>
<tt><font size="2">> map_to:</font></tt><br>
<tt><font size="2">> name: "network.\\1.\\2.rate"</font></tt><br>
<tt><font size="2">> unit: "\\1/s"</font></tt><br>
<tt><font size="2">> type: "gauge"</font></tt><br>
<tt><font size="2">> publishers:</font></tt><br>
<tt><font size="2">> - notifier://</font></tt><br>
<tt><font size="2">> <br>
> Can anyone tell me whether it's true?</font></tt><br>
<tt><font size="2">> <br>
> @hangliu, would you please show me your pipeline.yaml, if possible. Thanks!</font></tt><br>
<tt><font size="2">> <br>
> --</font></tt><br>
<tt><font size="2">> Regards,</font></tt><br>
<tt><font size="2">> Frank</font></tt><br>
<tt><font size="2">> <br>
> 2014-11-06 22:37 GMT+08:00 Neal, Phil <phil.neal@hp.com>:</font></tt><br>
<tt><font size="2">> Frank, I'd echo Hang Liu's suggestion, but also encourage you to <br>
> take this question to the general OpenStack mailing<br>
> list (see <a href="https://wiki.openstack.org/wiki/Mailing_Lists">https://wiki.openstack.org/wiki/Mailing_Lists</a>).<br>
> <br>
> - Phil<br>
> <br>
> From: Hang H Liu [<a href="mailto:hangliu@cn.ibm.com">mailto:hangliu@cn.ibm.com</a>]<br>
> Sent: Wednesday, November 05, 2014 7:36 AM<br>
> To: OpenStack Development Mailing List (not for usage questions)</font></tt><br>
<tt><font size="2">> Subject: Re: [openstack-dev] [ceilometer] unable to collect <br>
> compute.node.cpu.* data<br>
> <br>
> Same steps I can get below results. <br>
> You may need debug into get_meters() in ceilometer/storage/<br>
> impl_sqlalchemy.py to see if some filters are taking effect.<br>
> <br>
> <br>
> localadmin@ostest2:~/devstack$ ceilometer meter-list<br>
> +---------------------------------+------------+---------<br>
> +--------------------------------------<br>
> +----------------------------------+----------------------------------+<br>
> | Name | Type | Unit | Resource <br>
> ID | User ID | <br>
> Project ID |<br>
> +---------------------------------+------------+---------<br>
> +--------------------------------------<br>
> +----------------------------------+----------------------------------+<br>
> | compute.node.cpu.frequency | gauge | MHz | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.idle.percent | gauge | % | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.idle.time | cumulative | ns | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.iowait.percent | gauge | % | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.iowait.time | cumulative | ns | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.kernel.percent | gauge | % | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.kernel.time | cumulative | ns | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.percent | gauge | % | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.user.percent | gauge | % | <br>
> ostest2_ostest2 | None <br>
> | None |<br>
> | compute.node.cpu.user.time | cumulative | ns | <br>
> ostest2_ostest2 | None <br>
> <br>
> <br>
> <br>
> "Lu, Lianhao" <lianhao.lu@intel.com> 写于 2014/11/05 15:23:14:<br>
> <br>
> > From: "Lu, Lianhao" <lianhao.lu@intel.com><br>
> > To: "OpenStack Development Mailing List (not for usage questions)"<br>
> > <openstack-dev@lists.openstack.org><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 [<a href="mailto:dj199008@gmail.com">mailto:dj199008@gmail.com</a>]<br>
> > Sent: Wednesday, November 05, 2014 3:44 AM<br>
> > To: openstack-dev@lists.openstack.org<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/">http://docs.openstack.org/developer/ceilometer/</a><br>
> measurements.html#compute-nova<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>
> > OpenStack-dev@lists.openstack.org<br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><br>
<tt><font size="2">> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></tt></body></html>