buildgrid.server.metrics_utils module
- buildgrid.server.metrics_utils.create_counter_record(name: str, count: float, **metadata: str) MetricRecord
- buildgrid.server.metrics_utils.create_gauge_record(name: str, value: float, **metadata: str) MetricRecord
- buildgrid.server.metrics_utils.create_timer_record(name: str, duration: timedelta, **metadata: str) MetricRecord
- buildgrid.server.metrics_utils.create_distribution_record(name: str, value: float, **metadata: str) MetricRecord
- buildgrid.server.metrics_utils.publish_counter_metric(name: str, count: float, **metadata: str) None
- buildgrid.server.metrics_utils.publish_gauge_metric(name: str, value: float, **metadata: str) None
- buildgrid.server.metrics_utils.publish_timer_metric(name: str, duration: timedelta, **metadata: str) None
- buildgrid.server.metrics_utils.publish_distribution_metric(name: str, count: float, **metadata: str) None
- buildgrid.server.metrics_utils.timer(metric_name: str, **tags: str) Iterator[None]