Files
monasca-agent/monasca_setup/detection/plugins/heat.py
Rakesh H S 8967fca858 Differentiate heat-api from heat-api-* services
Assume heat-api is down, the heat-api process check would not raise
an alarm when lets say heat-api-cfn/heat-api-cloudwatch is still
running.

Hence while checking for heat-api we need to check for 'heat-api '
to differentiate it from heat-api-* services.

Change-Id: Ie08f559b6d32925d25a62c3ba19e829b6f33d602
2015-08-19 13:05:05 +05:30

21 lines
688 B
Python

import monasca_setup.detection
class Heat(monasca_setup.detection.ServicePlugin):
"""Detect Heat 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': 'orchestration',
'process_names': ['heat-api ', 'heat-api-cfn',
'heat-api-cloudwatch', 'heat-engine'],
'service_api_url': 'http://localhost:8004',
'search_pattern': '.*200 OK.*',
}
super(Heat, self).__init__(service_params)