Files
monasca-agent/monasca_setup/detection/plugins/cinder.py
Tom Hancock 271305eb9a CINDER-65 cinder monitoring
pid monitoring for cinder-backup and cinder-volume daemons isnt
applicable to all nodes currently as the daemons are singletons
and can move and there is no apparent way to be selective about
these monitors and reconfigure them.

Change-Id: I654b1c13ad9580cdf9e09add11dcb79234e3e3bc
2015-09-09 11:14:32 +01:00

24 lines
809 B
Python

import monasca_setup.detection
class Cinder(monasca_setup.detection.ServicePlugin):
"""Detect Cinder daemons and setup configuration to monitor them."""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'args': args,
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'block-storage',
'process_names': ['cinder-scheduler',
'cinder-api'],
'service_api_url': 'http://localhost:8776/v2.0',
'search_pattern': '.*version=1.*'
}
# process_names: cinder-volume and cinder-backup can
# migrate legitimately so monitor those selectively
# elsewhere
super(Cinder, self).__init__(service_params)