summaryrefslogtreecommitdiffstats
path: root/src/api/stats
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/stats')
-rw-r--r--src/api/stats/prometheus.rs16
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.",