diff options
| author | tv <tv@krebsco.de> | 2026-11-05 00:56:39 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-05 00:56:39 +0100 |
| commit | 4da17a5e40e34aea27a34241b4f692ae0c827f57 (patch) | |
| tree | df4260a9b912957a3f5e7908dca31810c9a3a88f /src/api/stats | |
| parent | 4c6604db27f26998b72fd815b6bd1de5a3b08780 (diff) | |
neigbours by transport
Diffstat (limited to 'src/api/stats')
| -rw-r--r-- | src/api/stats/prometheus.rs | 12 |
1 files changed, 12 insertions, 0 deletions
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", |
