From 6ee43b664d03752aab3095d020eaa90cf96d7ba0 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 6 Nov 2026 07:02:57 +0100 Subject: handshakes counted --- 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 8b8ca1c..94525cb 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -1080,7 +1080,7 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String { } } - let incidents: [IncidentSeries; 5] = [ + let incidents: [IncidentSeries; 6] = [ ( "peer_reply_timeouts_total", "Sync messages unanswered until the reply timeout.", @@ -1091,6 +1091,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_handshakes_total", + "Handshakes the peer started with us, each resetting our session with it.", + |i| i.handshakes as f64, + ), ( "peer_asked_again_total", "Times nothing answered for a while, so a PING asked again.", -- cgit v1.3.1