Fix the metrics

This commit is contained in:
Evan Cordell 2016-10-03 17:49:57 -04:00
parent 42ebb0a6c3
commit f3091c6424

View file

@ -681,10 +681,8 @@ class EphemeralBuilderManager(BaseManager):
parsed_metric_data = json.loads(metric_data.value)
start_time = parsed_metric_data['start_time']
metric.Observe(time.time() - start_time, labelvalues=[parsed_metric_data.get('executor_name', 'unknown')])
raise Return(True)
except Exception:
logger.exception("Could not write metric for realm %s", realm)
raise Return(False)
def _etcd_metric_key(self, realm):
""" Create a key which is used to track a job in etcd.