summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 03:43:37 +0100
committertv <tv@krebsco.de>2026-10-28 03:43:37 +0100
commitff6d98bdd5f921942eb2b37d313d3b9d18acee40 (patch)
treeef98a1542aee821006ece373c1ece536cc0e9596 /src/api
parent5184885fcec433d636060e5a4e889fa78827dadc (diff)
get swarm RTT from paths
Diffstat (limited to 'src/api')
-rw-r--r--src/api/peers.rs4
-rw-r--r--src/api/stats/prometheus.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/api/peers.rs b/src/api/peers.rs
index f2281c2..a653f7d 100644
--- a/src/api/peers.rs
+++ b/src/api/peers.rs
@@ -69,8 +69,8 @@ pub(crate) struct PeerStatus {
heads: Option<usize>,
/// We keep it alive and sync with it on our own; other peers we only answer.
neighbour: bool,
- /// Effective round-trip time in milliseconds (smoothed, raised by a HELLO still
- /// unanswered); absent without a recent sample.
+ /// Round-trip time in milliseconds of the path messages to it go over (`swarm::rtt`);
+ /// absent without a recent value.
rtt_ms: Option<f64>,
/// Messages and payload bytes exchanged with it, by kind, since we started (or
/// since it was last listed).
diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs
index 911228c..559a23e 100644
--- a/src/api/stats/prometheus.rs
+++ b/src/api/stats/prometheus.rs
@@ -808,7 +808,7 @@ pub(super) async fn render(state: &AppState, stats: &StatsResponse) -> String {
out.family(
"peer_rtt_seconds",
"gauge",
- "Effective round-trip time (smoothed, raised by an unanswered HELLO).",
+ "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 {