Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix metrics names
  • Loading branch information
SBOne-Kenobi committed Nov 9, 2022
commit 1f2d5d56398c53484ff234324b9015d521a88d1f
7 changes: 5 additions & 2 deletions monitoring/prepare_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ def build_metric_struct(name: str, value: any, labels: dict) -> dict:
name = update_from_counter_name("methods", name, labels)
name = update_from_coverage(name, labels)

name = f"utbot_{name}"

if type(value) == bool:
value = int(value)
name = f"test_generation_{name}"
elif type(value) == int:
name = f"{name}_total"

name = f"utbot_{name}"

return {
"metric": name,
Expand Down