aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/stats
diff options
context:
space:
mode:
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,