Skip to content

Commit 97ebb1a

Browse files
committed
fix metrics names
1 parent 0f70a2b commit 97ebb1a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

monitoring/prepare_metrics.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ def build_metric_struct(name: str, value: any, labels: dict) -> dict:
4545
name = update_from_counter_name("methods", name, labels)
4646
name = update_from_coverage(name, labels)
4747

48-
name = f"utbot_{name}"
49-
5048
if type(value) == bool:
5149
value = int(value)
50+
name = f"test_generation_{name}"
51+
elif type(value) == int:
52+
name = f"{name}_total"
53+
54+
name = f"utbot_{name}"
5255

5356
return {
5457
"metric": name,

0 commit comments

Comments
 (0)