metrics: Prometheus endpoint on its own --metrics listener; the pod exposes it inside the cluster only

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-19 10:56:43 +01:00
co-authored by Claude Sonnet 5.5
parent b922808a51
commit c653ae4206
13 changed files with 306 additions and 3 deletions
+8
View File
@@ -76,6 +76,14 @@ so:
new node is up. If you would rather have a renewable identity, create it once
by hand with a phrase (`allmende init`, without `--no-phrase`) on the volume
before the first start.
- **Metrics.** The node serves Prometheus metrics on container port 9090
(`--metrics`): peers (and peers per region), listings held, gossip dropped or
rejected, peers banned, sync and connections refused, and Go memory. They show
whether the node is being attacked or running short of memory. The port has no
login and no Service or IngressRoute points to it, so only things inside the
cluster can reach it; keep it that way. Scrape it with a PodMonitor
(`port: metrics`) or `kubectl -n allmende port-forward allmende-0 9090:9090`
and `curl localhost:9090/metrics`. Counters start at zero on every restart.
- **One replica only.** A second pod would be a second node with its own
identity, not a copy.
- **No sign-in link in the log.** `allmende run` normally prints the owner