Metrics

MetricsServer

Methods

on_worker_stop()

on_worker_stop(worker: Worker) -> None

start()

start()

stop()

stop(sig: Optional[int] = None)

configure_metrics()

configure_metrics(settings: Settings)

No description available.

log()

log(metrics)

Logs a new set of metric values. Each kwarg of this method will be treated as a separate metric / value pair. If any of the metrics does not exist, a new one will be created with a default description.

register()

register(name: str, description: str) -> Histogram

Registers a new metric with its description. If the metric already exists, it will just return the existing one.

Last updated

Was this helpful?