Ask Your Question

how to write ceilometer plugin

asked 2014-12-17 05:59:04 -0500

A Verma gravatar image

I have to write a plugin for ceilometer which can handle alarms from external software which monitors the underlying hardware. Please suggest how to start.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-18 05:01:08 -0500

9lives gravatar image

updated 2014-12-18 05:01:56 -0500

ceilometer is heavily depends on python stevedore, you can take a look at stevedore first here

Then just select the right agent base PollAgent, NotificationAgent, CentralAgent ,Evaluator as your base class then check the official example here to write your custom plugins.

Note: you have to register your custom plugin in stevedore entry_point.txt and restart the ceilometer service to make it work.

ceilometer.alarm.evaluator =
    threshold = ceilometer.alarm.evaluator.threshold:ThresholdEvaluator
    combination = ceilometer.alarm.evaluator.combination:CombinationEvaluator

ceilometer.alarm.evaluator_service =
    default = ceilometer.alarm.service:AlarmEvaluationService
    singleton = ceilometer.alarm.service:SingletonAlarmService
    partitioned = ceilometer.alarm.service:PartitionedAlarmService
    # NOTE(sileht): for backward compatibility
    ceilometer.alarm.service.SingletonAlarmService = ceilometer.alarm.service:SingletonAlarmService

Hope that helps!


edit flag offensive delete link more


Thanks a lot for the help. Will try above steps and get back.

A Verma gravatar imageA Verma ( 2014-12-18 09:55:00 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-17 05:59:04 -0500

Seen: 181 times

Last updated: Dec 18 '14