aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/stats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 01:34:15 +0100
committertv <tv@krebsco.de>2026-10-27 01:34:15 +0100
commit027a0920b81e7ee3e0f3eb4f0b3cbbb559133252 (patch)
treeeb3f0c51ad6594cb1515d28fcec839cdaf69156e /src/api/stats
parent3b2773500379d14c7611eacc62c4709c1b406fd3 (diff)
admit nodeId and addresses in the API
Diffstat (limited to 'src/api/stats')
-rw-r--r--src/api/stats/prometheus.rs8
1 files changed, 2 insertions, 6 deletions
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,