From 4da17a5e40e34aea27a34241b4f692ae0c827f57 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 00:56:39 +0100 Subject: neigbours by transport --- src/api/stats/prometheus.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/api/stats/prometheus.rs') diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index db3cef3..ffe6593 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -713,6 +713,18 @@ pub(super) fn render(stats: &StatsResponse, list: &PeerListResponse) -> String { "Current neighbours with the stable tier.", view.stable_neighbours as f64, ); + out.family( + "neighbours_on", + "gauge", + "Current neighbours with an address on one of this node's transports, by transport.", + ); + for (transport, neighbours) in &view.neighbours_by_transport { + out.sample( + "neighbours_on", + &[("transport", transport)], + *neighbours as f64, + ); + } if let Some(tree) = &view.own_tree { out.single( "own_tree_members", -- cgit v1.3.1