summaryrefslogtreecommitdiffstats
path: root/src/api/stats/prometheus.rs
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
commit2593edca179e86883e74c7039629564f4ea6ec55 (patch)
tree64257a6f5b1cf79b0e8d39bdfbfadb3e72c78e9c /src/api/stats/prometheus.rs
parent4cdece6d0f8e25ac154c3fd0f30bca604b08c16a (diff)
admit nodeId and addresses in the API
Diffstat (limited to 'src/api/stats/prometheus.rs')
-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,