def add_monitor(self, monitor):
        if not isinstance(monitor, Monitor):
            try:
                monitor = Monitor.registry[monitor]
            except __HOLE__:
                logger.error("Unable to find Monitor '%s' in registry.",
                             monitor)
        logger.debug("Adding monitor '%s' to monitoring group '%s'.",
                     monitor.name, self.name)
        self.monitors[monitor.name] = monitor
        monitor.monitoring_groups[self.name] = self
dataset/ETHPy150Open cloudtools/nymms/nymms/resources.py/MonitoringGroup.add_monitor