Enable v1 metrics tests (#20953)

Signed-off-by: Seiji Eicher <seiji@anyscale.com>
This commit is contained in:
Seiji Eicher
2025-07-20 03:22:02 +00:00
committed by GitHub
parent 3a1d8940ae
commit d1fb65bde3
3 changed files with 20 additions and 7 deletions
+7 -1
View File
@@ -51,7 +51,13 @@ class RayGaugeWrapper(RayPrometheusMetric):
def __init__(self,
name: str,
documentation: Optional[str] = "",
labelnames: Optional[list[str]] = None):
labelnames: Optional[list[str]] = None,
multiprocess_mode: Optional[str] = ""):
# All Ray metrics are keyed by WorkerId, so multiprocess modes like
# "mostrecent", "all", "sum" do not apply. This logic can be manually
# implemented at the observability layer (Prometheus/Grafana).
del multiprocess_mode
labelnames_tuple = tuple(labelnames) if labelnames else None
self.metric = ray_metrics.Gauge(name=name,
description=documentation,