Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet committed Jan 12, 2024
1 parent 698d419 commit 4ccfbf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion karton/dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ def get_xrefs(root_uid) -> List[Tuple[str, str]]:


def add_metrics(state: KartonState, metric: KartonMetrics, key: str) -> None:
metrics = {k: int(v) for k, v in state.backend.redis.hgetall(metric.value).items()} # type: ignore
metrics = {
k: int(v)
for k, v in state.backend.redis.hgetall(metric.value).items() # type: ignore
}
for name, value in metrics.items():
karton_metrics.labels(key, name).set(value)

Expand Down

0 comments on commit 4ccfbf3

Please sign in to comment.