def start_metrics(m2ee): metrics_interval = os.getenv('METRICS_INTERVAL') if metrics_interval: import metrics thread = metrics.MetricsEmitterThread(int(metrics_interval), m2ee) thread.setDaemon(True) thread.start()
def start_metrics(m2ee): metrics_interval = os.getenv("METRICS_INTERVAL") profile = os.getenv("PROFILE") if metrics_interval and profile != "free": import metrics thread = metrics.MetricsEmitterThread(int(metrics_interval), m2ee) thread.setDaemon(True) thread.start() else: logger.info("MENDIX-INTERNAL: Metrics are disabled.")
def start_metrics(m2ee): metrics_interval = os.getenv('METRICS_INTERVAL') if metrics_interval: metrics.MetricsEmitterThread(int(metrics_interval), m2ee).start()