yr.Gauge#
- class yr.Gauge(name: str, description: str, unit: str = '', labels: Dict[str, str] = {})[source]#
Bases:
MetricsUsed for reporting metrics data.
Note
Prometheus-like data structure.
Billing information is reported to the backend openYuanRong collector.
Not usable within the driver.
- Parameters:
name (str) – name.
description (str) – description.
unit (str, optional) – Unit.
labels (Dict[str, str], optional) – Label. e.g.
labels = {"request_id": "abc"}.
Methods
add label.
set value.