Ask Your Question

How to adjust Ceilometer granularity dynamically?

asked 2018-11-27 18:47:06 -0500

kepler gravatar image

From my understanding, Ceilometer service currently needs restarting after updating yaml files. Is there a way to obtain measures upon request and/or adjust the monitoring frequency dynamically?

I've also looked at the API docs ( but it doesn't seem to contain a monitoring section.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-11-27 19:14:44 -0500

updated 2018-11-27 19:22:13 -0500

The Ceilometer API was deprecated at Pike and seems to have been removed since: In any case, it never allowed setting the granularity or requesting samples manually.

Ceilometer has two methods to get data. First from notifications emitted by the services that it measures. Ceilometer has no control over the frequency of those notifications, but perhaps you can tune them by setting service-specific parameters. it seems to me, though, that notification are emitted whenever some change occurs, so that frequency doesn't apply.

The second method is Ceilometer actively polling services. The polling frequency is set in a config file, not via API.

edit flag offensive delete link more


Thanks, I'm mostly interested in the polling method. Do you know if there's a way to bypass the config file in setting the frequency of polling? I.e.: where to find out more about the interface that the Ceilometer is polling?

kepler gravatar imagekepler ( 2018-11-29 22:45:12 -0500 )edit

Perhaps the contributor guide is of help. It includes an architecture overview and documents plugin development. Other than changing Ceilometer's code, however, I doubt that there is a way to bypass the configuration file.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-30 19:20:12 -0500 )edit

Thanks, Bernd. I was hoping there is a straightforward workaround but I guess I'll have to look into polling manager implementation

kepler gravatar imagekepler ( 2018-12-02 19:14:57 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-11-27 18:47:06 -0500

Seen: 164 times

Last updated: Nov 27 '18