[Openstack] [Ceilometer] long delay posting measures to Gnocchi

Mehdi Abaakouk sileht at sileht.net
Wed Nov 22 13:54:12 UTC 2017


Hi

https://docs.openstack.org/ceilometer/pike/admin/telemetry-best-practices.html#data-collection

"By default, Telemetry service polls the service APIs every 10 minutes.
You can change the polling interval on a per meter basis by editing the
polling.yaml configuration file."

Some other samples are built when we received nova notification every
hour.

On Wed, Nov 22, 2017 at 04:30:10PM +0900, Bernd Bausch wrote:
>Context:
>--------
>I teach people the basics of telemetry, alarms and autoscaling. I run
>Ceilometer with a 60 sec polling interval and want to see measures and
>trigger alarms after 2-3 minutes.

Maybe you changed the polling into the deprecated location. e.g.:
pipeline.yaml insteads o polling.yaml ?

>My environment is a DevStack cloned from the master branch some two weeks
>ago. Ceilometer uses Gnocchi as publisher. nova-manage version returns 17
>(Queens).
>
>Problem:
>-------
>It takes 10 minutes or longer (I have seen over 30 minutes) after instance
>launch until the instance's measures are posted to Gnocchi. The notification
>agent log then includes the message "Resource <UUID> created". Before that,
>there is no trace of that UUID in the log.

That's really looks like the default polling intervals.

>Next problem is a lag in publishing measurements:
>
>$ date
>Wed Nov 22 07:16:38 UTC 2017
>$ gnocchi measures show --resource-id 4ec5c876-367a-4918-9037-671b5ece3665
>cpu_util
>+---------------------------+-------------+----------------+
>| timestamp                 | granularity |          value |
>+---------------------------+-------------+----------------+
>| 2017-11-22T06:00:00+00:00 |      3600.0 | 0.128224536267 |
>| 2017-11-22T06:48:00+00:00 |        60.0 |   0.1357511344 |
>...
>| 2017-11-22T06:56:00+00:00 |        60.0 |   0.1310314404 |
>+---------------------------+-------------+----------------+

To looks if samples are waiting in:

ceilometer: sudo rabbitmqctl list_queues name messages_ready messages_unacknowledged | grep "^\(notifications\|ceilometer\)"

gnocchi: gnocchi status

Regards,

--
Mehdi Abaakouk
mail: sileht at sileht.net
irc: sileht
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20171122/42a9c040/attachment.sig>


More information about the Openstack mailing list