pub struct Counters { /* private fields */ }Expand description
The running totals behind the counters in /metrics.
Every gauge the node exported before these described a state it could
read on demand – readiness, free disk, ref agreement. Nothing
described what had happened, so two of the alerts
docs/private-beta-runbook.md calls critical, a spike in refused or
failed requests and a breach of the latency gate, had no metric to
fire from. These are that, and they are counters rather than gauges
on purpose: an alert wants a rate, and a rate needs a number that
only ever goes up.
Counted in Access::finish, which every served request passes
through, and counted before the request log is consulted –
a node started without --request-log still has to be alertable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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