diff options
| author | tv <tv@krebsco.de> | 2026-10-28 03:44:02 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 03:44:02 +0100 |
| commit | 2f241feb637bf71fe5077ba183ffabe03c8212f3 (patch) | |
| tree | 8e924df3ab00fbf93fe3f2103493b123d05398b8 /src/api/stats/prometheus.rs | |
| parent | ff6d98bdd5f921942eb2b37d313d3b9d18acee40 (diff) | |
drop peer.rttMs from /peers API
Diffstat (limited to 'src/api/stats/prometheus.rs')
| -rw-r--r-- | src/api/stats/prometheus.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index 559a23e..8e6fde7 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -123,7 +123,6 @@ struct Peer { diverged_secs: Option<f64>, traffic: PeerTraffic, incidents: Incidents, - rtt_secs: Option<f64>, throughput: Option<f64>, destination: Option<Destination>, } @@ -135,10 +134,6 @@ async fn peers(state: &AppState) -> Vec<Peer> { let mut peers = Vec::with_capacity(snapshot.len()); for (key, peer_state) in snapshot { let neighbour = crate::swarm::topology::is_neighbour(state, &key); - let rtt_secs = state - .lock_rtt() - .effective(&key, now, state.timing.rtt_fresh_for()) - .map(|rtt| rtt.as_secs_f64()); let throughput = state .throughput .lock_or_recover() @@ -160,7 +155,6 @@ async fn peers(state: &AppState) -> Vec<Peer> { .map(|t| now.saturating_duration_since(t).as_secs_f64()), traffic, incidents: peer_state.incidents, - rtt_secs, throughput, alias: aliases.remove(&key), destination: state.transport.destination(&key), @@ -806,16 +800,6 @@ pub(super) async fn render(state: &AppState, stats: &StatsResponse) -> String { } } out.family( - "peer_rtt_seconds", - "gauge", - "Round-trip time of the path messages to the peer go over (before that, of HELLOs).", - ); - for peer in &peers { - if let Some(rtt) = peer.rtt_secs { - out.sample("peer_rtt_seconds", &[("peer", &peer.key)], rtt); - } - } - out.family( "peer_sync_throughput_bytes_per_second", "gauge", "Smoothed sync throughput in large exchanges.", |
