aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/stats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-06 07:02:57 +0100
committertv <tv@krebsco.de>2026-11-06 07:02:57 +0100
commit6ee43b664d03752aab3095d020eaa90cf96d7ba0 (patch)
tree079e79e7ac77f183f4e0a828e9addd26d5afa7cf /src/api/stats
parent19461552f88e8b82a24c63c00a6591996ae8f45d (diff)
handshakes counted
Diffstat (limited to 'src/api/stats')
-rw-r--r--src/api/stats/prometheus.rs7
1 files changed, 6 insertions, 1 deletions
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.",
@@ -1092,6 +1092,11 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String {
|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.",
|i| i.asked_again as f64,