Prometheus metrics endpoint for knox nodes #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expose a Prometheus /metrics endpoint on knox nodes so the swarm can be monitored.
Decisions:
prometheus/client_golang(official text exposition + Go runtime/process collectors)KNOX_METRICS_ADDR(separate from the gossip port)Metrics:
knox_node_info{node_id,name}for scrape identificationEverything else (source-of-truth round-trip via reconcile, swarm membership) ships in-and-along the M1-M4 curl.
Done — shipped with the gossip milestones and live on the always-on node.
/metricson a dedicated port (KNOX_METRICS_ADDR, default:8932), separate from gossipprometheus/client_golangwith the Go runtime and process collectorsknox_entries,knox_observations{source_id},knox_threads{status},knox_peers,knox_observations_by_node{node_id},knowledge_max_hcl{node_id}) plus gossip counters (knox_pulls_total,knox_pushes_total,knox_observations_pulled_total,knox_observations_pushed_total,knox_gossip_errors_total)knox_node_info{node_id,name}for scrape identityVerified on dhg.lol:
curl http://172.30.170.155:8932/metricsreturnsknox_entries,knox_observations,knox_gossip_errors_total.Note from #5: gauges dropped the
_totalsuffix (reserved for counters) — dashboards were renamed accordingly.