Fix the metrics
This commit is contained in:
parent
42ebb0a6c3
commit
f3091c6424
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
logger.exception("Could not write metric for realm %s", realm)
|
||||
|
||||
def _etcd_metric_key(self, realm):
|
||||
""" Create a key which is used to track a job in etcd.
|
||||
|
|
Reference in a new issue