monasca-agent/monsetup/detection/plugins/nova.py

25 lines
839 B
Python

import monsetup.detection
class Nova(monsetup.detection.ServicePlugin):
"""Detect Nova daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'nova',
'process_names': ['nova-compute', 'nova-conductor',
'nova-cert', 'nova-network',
'nova-scheduler', 'nova-novncproxy',
'nova-xvpncproxy', 'nova-consoleauth',
'nova-objectstore', 'nova-api'],
'service_api_url': 'http://localhost:8774/v2.0',
'search_pattern': '.*version=2.*'
}
super(Nova, self).__init__(service_params)