mirror of
https://github.com/clearml/clearml-serving
synced 2025-06-26 18:16:00 +00:00
Changed variable type to value
This commit is contained in:
parent
d15bfcade5
commit
5a6c8abeb0
@ -67,7 +67,7 @@ def func_metric_add(args):
|
|||||||
name = v.strip()
|
name = v.strip()
|
||||||
if name in metric.metrics:
|
if name in metric.metrics:
|
||||||
print("Warning: {} defined twice".format(name))
|
print("Warning: {} defined twice".format(name))
|
||||||
metric.metrics[name] = dict(type="variable", buckets=None)
|
metric.metrics[name] = dict(type="value", buckets=None)
|
||||||
|
|
||||||
if not request_processor.add_metric_logging(metric=metric):
|
if not request_processor.add_metric_logging(metric=metric):
|
||||||
raise ValueError("Could not add metric logging endpoint {}".format(args.endpoint))
|
raise ValueError("Could not add metric logging endpoint {}".format(args.endpoint))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user