pub struct PrometheusApiMetrics { /* private fields */ }Expand description
Prometheus implementation of ApiMetricsBackend.
§Metrics (solti_api_*)
| Metric | Type | Labels | Description |
|---|---|---|---|
solti_api_requests_total | Counter | transport, method, path, status | Completed requests |
solti_api_request_duration_seconds | Histogram | transport, method, path | Request duration |
solti_api_in_flight_requests | Gauge | transport | In-flight request count |
§Cardinality
path is a templated route (e.g. /api/v1/tasks/{id}) for HTTP thanks toaxum::extract::MatchedPath, and a full method path (/solti.v1.SoltiApi/SubmitTask) for gRPC.
In both cases the set is bounded by the proto/api definition.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrometheusApiMetrics
impl !RefUnwindSafe for PrometheusApiMetrics
impl Send for PrometheusApiMetrics
impl Sync for PrometheusApiMetrics
impl Unpin for PrometheusApiMetrics
impl UnsafeUnpin for PrometheusApiMetrics
impl !UnwindSafe for PrometheusApiMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more