Skip to content

Commit

Permalink
Merge pull request #107 from jzelinskie/job-status-str
Browse files Browse the repository at this point in the history
buildman: cast job_status to string for metric
  • Loading branch information
jzelinskie committed Dec 17, 2019
2 parents 5710fba + 945e038 commit 7a19e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildman/manager/ephemeral.py
Expand Up @@ -780,7 +780,7 @@ def _write_duration_metric(self, metric, realm, job_status=None):
start_time = parsed_metric_data["start_time"]
executor = parsed_metric_data.get("executor_name", "unknown")
if job_status is not None:
metric.labels(executor, job_status).observe(time.time() - start_time)
metric.labels(executor, str(job_status)).observe(time.time() - start_time)
else:
metric.labels(executor).observe(time.time() - start_time)
except Exception:
Expand Down

0 comments on commit 7a19e98

Please sign in to comment.