diff options
Diffstat (limited to 'src/api/stats.rs')
| -rw-r--r-- | src/api/stats.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/stats.rs b/src/api/stats.rs index 558507a..9ac2c94 100644 --- a/src/api/stats.rs +++ b/src/api/stats.rs @@ -140,6 +140,11 @@ struct RelayStats { pulls: u64, /// Announcements of heads we lacked that waited for the pull in progress. pulls_queued: u64, + /// Links made eager, and lazy again (`swarm::relay`). + grafts: u64, + prunes: u64, + /// Changes forwarded over eager links, per neighbour. + eager_forwards: u64, /// Blob requests not answered: too many were being answered. blob_requests_dropped: u64, } @@ -340,6 +345,9 @@ pub(crate) async fn collect(state: &AppState, list: &PeerListResponse) -> StatsR announce_rounds: node.relay.announce_rounds, pulls: node.relay.pulls, pulls_queued: node.relay.pulls_queued, + grafts: node.relay.grafts, + prunes: node.relay.prunes, + eager_forwards: node.relay.eager_forwards, blob_requests_dropped: node.blob_requests_dropped, }, topology: TopologyStats { |
