metrics-axum
Axum integration for the metrics-exporter workspace.
Provides:
PrometheusMetrics— shared state holding the registry, HTTP request metrics, and database collector handles. Drop-in for Axum'sState.HttpMetricsLayer— a Tower layer / middleware that automatically recordshttp_requests_total,http_request_duration_seconds, andhttp_requests_in_flightfor every request.metrics_handler— an Axum handler that encodes and serves the Prometheus text exposition format onGET /metrics.health_handler— a simpleGET /healthliveness probe.- Helpers to register the default Prometheus process collector and an optional Tokio runtime collector so they appear alongside the database metrics.