Module metrics_updater

Module metrics_updater 

Source
Expand description

A middleware module wrapping around prometheus::Registry. It acts as an endpoint to export metrics data to the Prometheus service. For every request to this endpoint, it will call the updater function to update metrics to the latest before sending to the service.

Structsยง

MetricsUpdaterMiddleware
A Middleware wrapping the Prometheus registry to report as metrics.