From 63871240278181f14af9d561f30b428d5db5e34a Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 00:56:51 +0100 Subject: asked again counter --- src/api/stats/prometheus.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/api/stats/prometheus.rs') diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index ffe6593..fb8b890 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -1068,7 +1068,7 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String { } } - let incidents: [IncidentSeries; 4] = [ + let incidents: [IncidentSeries; 5] = [ ( "peer_reply_timeouts_total", "Sync messages unanswered until the reply timeout.", @@ -1079,6 +1079,11 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String { "Re-handshakes because documents differed while sync was idle.", |i| i.heals as f64, ), + ( + "peer_asked_again_total", + "Times nothing answered for a while, so a PING asked again.", + |i| i.asked_again as f64, + ), ( "peer_dormancies_total", "Times the peer went dormant.", -- cgit v1.3.1