[openstack-dev] [Ceilometer] Changing pollster/pipeline parameters

Eoghan Glynn eglynn at redhat.com
Wed Jul 3 21:53:47 UTC 2013



----- Original Message -----
> A couple of related questions on managing CM pollster behavior via "config"
> type files:
> 
> 1. I'm trying to make some modifications to the timing of the Glance (image)
> polling in a default CM install. It looks like the pipeline interval fields
> are the way to do it, and that I should tweak it using a yaml config file,
> but I can't seem to verify based on a read-through of the code. Can anyone
> confirm?

Yep, the configured interval in the /etc/ceilometer/pipeline.yaml is the way
to go.

For example:

 $ sed -i 's/interval: .*$/interval: 10/' /etc/ceilometer/pipeline.yaml
 $ # restart ceilometer-agent-central
 $ ceilometer sample-list -m image.size | tail -5
 | df52ee46-91c0-417a-a27c-ca0b447fb5db | image.size | gauge | 25165824.0 | B    | 2013-07-03T21:40:15        |
 | df52ee46-91c0-417a-a27c-ca0b447fb5db | image.size | gauge | 25165824.0 | B    | 2013-07-03T21:40:25        |
 | df52ee46-91c0-417a-a27c-ca0b447fb5db | image.size | gauge | 25165824.0 | B    | 2013-07-03T21:40:35        |
 | df52ee46-91c0-417a-a27c-ca0b447fb5db | image.size | gauge | 25165824.0 | B    | 2013-07-03T21:40:45        |
 +--------------------------------------+------------+-------+------------+------+----------------------------+

As you see the meter is now being collected at a 10s cadence.

This timing is pulled in via the AgentManager base class:

  https://github.com/openstack/ceilometer/blob/master/ceilometer/agent.py#L90
 
> 2. Similarly, it looks like disabling pollsters is done via the oslo.cfg
> logic in the agent manager. I'd like to populate that using a config
> file....is there logic already to do that that I haven't come across yet?

Well the way I'd disable a pollster is simply by configuring the counters
exclusion in the pipeline.yaml.

For example to disable the pollster providing the image.size meter referred
to above, the following will do the trick:

    counters:
        - "*"
        - "!image.size"

i.e. allow everything but the image.size meter.

Confirm as before using:

 $ # restart ceilometer-agent-central
 $ ceilometer sample-list -m image.size | tail -5


Cheers,
Eoghan
 
> - Phil
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 



More information about the OpenStack-dev mailing list