Expand description
Raft metrics for observability.
Applications may use this data in whatever way is needed. The obvious use cases are to expose these metrics to a metrics collection system like Prometheus. Applications may also use this data to trigger events within higher levels of the parent application.
Metrics are observed on a running Raft node via the Raft::metrics()
method, which will
return a stream of metrics.
Structs
- A set of metrics describing the current state of a Raft node.
- The metrics about the leader. It is Some() only when this node is leader.
- Wait is a wrapper of RaftMetrics channel that impls several utils to wait for metrics to satisfy some condition.