From 2593edca179e86883e74c7039629564f4ea6ec55 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 27 Oct 2026 01:34:15 +0100 Subject: admit nodeId and addresses in the API --- src/api/stats/prometheus.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/api/stats') diff --git a/src/api/stats/prometheus.rs b/src/api/stats/prometheus.rs index 8d31eb0..01cd271 100644 --- a/src/api/stats/prometheus.rs +++ b/src/api/stats/prometheus.rs @@ -190,15 +190,11 @@ pub(super) async fn render(state: &AppState, stats: &StatsResponse) -> String { // Names for joining (`* on(peer) group_left(alias) continuum_peer_info`), kept out // of the other series so a rename doesn't start new ones. - out.family( - "info", - "gauge", - "This node's public key and alias (always 1).", - ); + out.family("info", "gauge", "This node's node ID and alias (always 1)."); out.sample( "info", &[ - ("public_key", &stats.public_key), + ("node_id", &stats.node_id), ("alias", stats.alias.as_deref().unwrap_or("")), ], 1.0, -- cgit v1.3.1