aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/stats/prometheus.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-05 00:56:51 +0100
committertv <tv@krebsco.de>2026-11-05 00:56:51 +0100
commit63871240278181f14af9d561f30b428d5db5e34a (patch)
tree946ac238d40cbb2766886339337d954c3b933b56 /src/api/stats/prometheus.rs
parent4da17a5e40e34aea27a34241b4f692ae0c827f57 (diff)
asked again counter
Diffstat (limited to 'src/api/stats/prometheus.rs')
-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 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.",
@@ -1080,6 +1080,11 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String {
|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.",
|i| i.dormancies as f64,