Ask Your Question
1

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
0

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 http://stevedore.readthedocs.org/en/l...

Then just select the right agent base PollAgent, NotificationAgent, CentralAgent ,Evaluator as your base class then check the official example here http://docs.openstack.org/developer/c... 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
    **your_customized_plugin_alias=your_customized_plugin_name.namespace:your_customized_plugin**

Hope that helps!

Vic

edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 165 times

Last updated: Dec 18 '14