Skip to content

metrics: add prometheus-based libp2p and node-specific metrics - #17

Merged
pymq merged 1 commit into
masterfrom
prometheus-metrics
Jul 14, 2026
Merged

metrics: add prometheus-based libp2p and node-specific metrics#17
pymq merged 1 commit into
masterfrom
prometheus-metrics

Conversation

@pymq

@pymq pymq commented Jul 13, 2026

Copy link
Copy Markdown
Member

Enable libp2p's built-in Prometheus telemetry via PrometheusRegisterer (relaysvc, autonatv2, swarm, identify, holepunch, autorelay, eventbus) and wire a rcmgr StatsTraceReporter to expose libp2p_rcmgr_* (current streams/connections/memory/fds).

Add an awl_bootstrap_* metrics package for the few things libp2p does not export: node info/uptime, DHT routing table size, node bandwidth and peerstore size. Expose everything at GET /metrics via echoprometheus.

Move pprof endpoints from DevMode-only to a DisablePprof config flag (enabled by default).

Enable libp2p's built-in Prometheus telemetry via PrometheusRegisterer
(relaysvc, autonatv2, swarm, identify, holepunch, autorelay, eventbus)
and wire a rcmgr StatsTraceReporter to expose libp2p_rcmgr_* (current
streams/connections/memory/fds).

Add an awl_bootstrap_* metrics package for the few things libp2p does not export:
node info/uptime, DHT routing table size, node bandwidth and peerstore
size. Expose everything at GET /metrics via echoprometheus.

Move pprof endpoints from DevMode-only to a DisablePprof config flag
(enabled by default).
@pymq
pymq merged commit 1c5c2a3 into master Jul 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant