Ask Your Question
1

ceilometer sample-list is not going up on Havanna

asked 2014-09-13 17:46:47 -0500

linuxuser26 gravatar image

On my all-in-one Havanna setup with rabbitmq-server ,I'm running into an issue where the ceilometer sample-list count is not going up.It returns the same count every time I run this command.I'd appreciate any pointers.

[root@~(keystone_admin)]# ceilometer sample-list -m cpu |wc -l
1100

All the  relevant services are running.
[root@ ~(keystone_admin)]# for svc in compute central collector api ; do
> service openstack-ceilometer-$svc status
> done
openstack-ceilometer-compute (pid  31102) is running...
openstack-ceilometer-central (pid  31068) is running...
openstack-ceilometer-collector (pid  31083) is running...
openstack-ceilometer-api (pid  31049) is running...


[root@ ~(keystone_admin)]# /etc/init.d/mongod status
mongod (pid  2547) is running..

Nova is connected to the rabbit-mq server.

#cat /var/log/nova/consoleauth.log
2014-09-01 16:56:05.920 8399 INFO nova.openstack.common.rpc.common [req-1521a312-2da9-4e3e-a5a6-a04d9e3fa234 None None] Connected to AMQP server on xx.yy.zz.aa:5672 

#cat /var/log/ceilometer/collector.log
2014-09-01 16:00:25.839 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.839 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.839 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.839 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.840 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.840 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.840 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.841 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.841 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.841 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.842 31083 AUDIT ceilometer.pipeline [-] Pipeline meter_pipeline: Publishing samples
2014-09-01 16:00:25.843 31083 AUDIT ceilometer.publisher.rpc [-] Publishing 1 samples on metering
2014-09-01 16:00:25.849 31083 AUDIT ceilometer.pipeline [-] Pipeline meter_pipeline: Published samples
2014-09-01 16:00:25.849 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.849 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.850 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.850 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.850 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.851 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.851 31083 AUDIT ceilometer.pipeline [-] Pipeline meter_pipeline: Publishing samples
2014-09-01 16:00:25.852 31083 AUDIT ceilometer.publisher.rpc [-] Publishing 1 samples on metering
2014-09-01 16:00:25.859 31083 AUDIT ceilometer.pipeline [-] Pipeline meter_pipeline: Published samples
2014-09-01 16:00:25.860 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.860 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.860 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.861 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
2014-09-01 16:00:25.861 31083 AUDIT ceilometer.pipeline [-] Flush pipeline meter_pipeline
2014-09-01 16:00:25.861 31083 AUDIT ceilometer.pipeline [-] Flush pipeline cpu_pipeline
edit retag flag offensive close merge delete

Comments

Might be a stupid question, but do you have instances running?

Attila Szlovencsak gravatar imageAttila Szlovencsak ( 2014-09-15 07:53:31 -0500 )edit

Yes,I do have instances running.

linuxuser26 gravatar imagelinuxuser26 ( 2014-09-15 08:36:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-23 18:46:29 -0500

Darkinvader gravatar image

There are few components you need. 1. producer, in your /etc/nova.conf you need to have notifications configured, for example:

notification_topics=notifications-for-ceilometer

this is a part for nova producer to generate messages that will go to Rabbitmq and will be waiting to be consumed by Ceilometer

  1. consumer, make sure you have /etc/ceilometer/ceilometer.conf with the same thing:

notification_topics=notifications-for-ceilometer

this is a part for ceilometer consumer

restart your services:

service ceilometer-agent-central restart service ceilometer-agent-notification restart service ceilometer-alarm-evaluator restart service ceilometer-alarm-notifier restart service ceilometer-api restart service ceilometer-collector restart

service nova-compute restart

Create few VM instances and keep then running for at least 11 minutes (every 10 minutes ceilometer agent collects samples as /etc/ceilometer/pipeline.yaml configures it)

After that tail all your logs and look for errors.

tail -f /var/log//.log

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-13 17:46:47 -0500

Seen: 201 times

Last updated: Sep 13 '14