- Updated the alarm notifier instance
Signed-off-by: Helena McGough <helena.mcgough@intel.com>
"""Initialize alarm notifier."""
self._response = OpenStack_Response()
- self._producer = KafkaProducer("alarm_response", None)
+ self._producer = KafkaProducer("alarm_response")
def notify(self, alarming):
"""Send alarm notifications responses to the SO."""
"""Aodh plugin for the OSM monitoring module."""
import logging as log
-# import sys
-
-# path = "/opt/stack/MON"
-# if path not in sys.path:
-# sys.path.append(path)
from plugins.OpenStack.Aodh.alarming import Alarming
from plugins.OpenStack.Aodh.notifier import Notifier
instance = Plugin(config=config, notifier=notifier)
instance.config()
instance.alarm()
- instance.notify()
class Plugin(object):
"""Gnocchi plugin for the OSM monitoring module."""
import logging as log
-import sys
-
-path = "/root/MON"
-if path not in sys.path:
- sys.path.append(path)
from plugins.OpenStack.Gnocchi.metrics import Metrics
from plugins.OpenStack.settings import Config