From 5b3d9cbd1bba986b06978bef0100d349b33e74c7 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 03:26:15 +0100 Subject: add eager link counters --- src/api/stats/prometheus.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/api/stats') diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index 0a1d75d..3d4bcc6 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -650,6 +650,24 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String { "Announcements of heads we lacked that waited for the pull in progress.", relay.pulls_queued as f64, ); + out.single( + "grafts_total", + "counter", + "Links made eager: a pull brought changes over them.", + relay.grafts as f64, + ); + out.single( + "prunes_total", + "counter", + "Links made lazy again: changes came over them that another path brought first.", + relay.prunes as f64, + ); + out.single( + "eager_forwards_total", + "counter", + "Changes forwarded over eager links, per neighbour.", + relay.eager_forwards as f64, + ); out.single( "blob_requests_dropped_total", "counter", -- cgit v1.3.1