Enable/Disable/Configure a pollster in runtime

Registered by Lianhao Lu

When using ceilometer for monitoring, sometimes the users want to enable/disable some pollsters which are only for testing/debugging purpose in runtime, without modifying the configuration file and restarting the agent.

Besides, some users might want to ask a pollster only to monitor part of the resources available to it, e.g. only to monitor one specific nova instance. The users need to pass the instance UUID as a configuration-paramter to the pollster in runtime.

We might need to design a framework to allow the user to use the "management-API" to do the following things in the run-time:
 - enable/disable a pollster
 - get/set configuration parameter for a pollster
 - ask a pollster to immediately start polling, instead of waiting for other pollsters in the same polling task to finish before it can start poll.

Blueprint information

Status:
Complete
Approver:
Julien Danjou
Priority:
Low
Drafter:
None
Direction:
Approved
Assignee:
Fengqian
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon 2013.2
Started by
Fengqian
Completed by
Fengqian

Related branches

Whiteboard

According to the H summit discussion, instead of using the "Management-API", we decided to either:
- check timestamp on pipeline config file and rebuild if changed (leverage policy file change detection logic)
- or alternatively use signal trapping to trigger change, e.g. SIGUSR1

Gerrit topic: https://review.openstack.org/#q,topic:bp/service-restart,n,z

Addressed by: https://review.openstack.org/39432
    Add service restart function

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.