ray.util.metrics.Gauge.set#

Gauge.set(value: int | float, tags: Dict[str, str] = None)[source]#

Set the gauge to the given value.

Tags passed in will take precedence over the metric’s default tags.

Parameters:
  • value (int, float) – Value to set the gauge to.

  • tags (Dict[str, str]) – Tags to set or override for this gauge.