libp2p-metrics
Metrics for libp2p
0.17.0
15M downloads/mo
#2465 most downloaded on crates.io
libp2p/rust-libp2p
What this package is like to depend on
Last release 1 years ago
27 Jun 2025
Release timing varies
gaps range from 9 days to 9 months
Nearly every release is documented
notes for 20 of 20 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
22 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
22 releases · Oct 2021 to Jun 2025Releases
latest 22-
0.17.027 Jun 2025Release notes
Open source →-
Update
prometheus-clientto0.23.0. See PR 5960. -
Add
ReservationClosedas a relay metric. See PR 5869.
<!-- Update to libp2p-swarm v0.47.0 -->
-
-
0.16.014 Jan 2025 -
0.15.019 Aug 2024 -
0.14.209 Aug 2024 withdrawnNothing published for this version
-
0.14.112 Nov 2023Release notes
Open source →- Add
BandwidthTransport, wrapping an existingTransport, exposing Prometheus bandwidth metrics. See alsoSwarmBuilder::with_bandwidth_metrics. See PR 4727.
- Add
-
0.14.005 Nov 2023Release notes
Open source →- Add metrics for
SwarmEvent::{NewExternalAddrCandidate,ExternalAddrConfirmed,ExternalAddrExpired}. See PR 4721.
- Add metrics for
-
0.13.111 Aug 2023Release notes
Open source →- Enable gossipsub related data-type fields when compiling for wasm. See PR 4217.
-
0.13.020 Jun 2023Release notes
Open source →-
Previously
libp2p-metrics::identifywould increase a counter / gauge / histogram on each received identify information. These metrics are misleading, as e.g. they depend on the identify interval and don't represent the set of currently connected peers. With this change, identify information is tracked for the currently connected peers only. Instead of an increase on each received identify information, metrics represent the status quo (Gauge).Metrics removed:
libp2p_identify_protocolslibp2p_identify_received_info_listen_addrslibp2p_identify_received_info_protocolslibp2p_identify_listen_addresses
Metrics added:
libp2p_identify_remote_protocolslibp2p_identify_remote_listen_addresseslibp2p_identify_local_observed_addresses
See PR 3325.
-
Raise MSRV to 1.65. See PR 3715.
-
Replace
libp2p_swarm_connections_closedCounterwithlibp2p_swarm_connections_durationHistogramwhich additionally tracks the duration of a connection. Note that you can use the_countmetric of theHistogramas a replacement for theCounter. See PR 3927. -
Remove the
pong_receivedcounter because it is no longer exposed bylibp2p-ping. See PR 3947.
-
-
0.12.024 Feb 2023Release notes
Open source →-
Update to
prometheus-clientv0.19.0. See PR 3207. -
Add
connections_establishment_durationmetric. See PR 3134. -
Bump MSRV to 1.65.0.
-
Update to
libp2p-corev0.39.0. -
Update to
libp2p-dcutrv0.9.0. -
Update to
libp2p-pingv0.42.0. -
Update to
libp2p-kadv0.43.0. -
Update to
libp2p-relayv0.15.0. -
Update to
libp2p-identifyv0.42.0. -
Update to
libp2p-swarmv0.42.0.
-
-
0.11.025 Nov 2022Release notes
Open source →-
Update to
libp2p-dcutrv0.8.0. -
Update to
libp2p-identifyv0.41.0. -
Update to
libp2p-relayv0.14.0. -
Update to
libp2p-corev0.38.0. -
Update to
libp2p-swarmv0.41.0. -
Update to
libp2p-pingv0.41.0. -
Update to
libp2p-kadv0.42.0. -
Update to
libp2p-gossipsubv0.43.0. -
Add
protocol_stackmetrics. See PR 2982. -
Update
rust-versionto reflect the actual MSRV: 1.62.0. See PR 3090. -
Changed
Metrics::query_result_get_record_okfromHistogramto aCounter. See PR 2712.
-
-
0.10.014 Oct 2022Release notes
Open source →-
Update to
libp2p-swarmv0.40.0. -
Update to
libp2p-dcutrv0.7.0. -
Update to
libp2p-pingv0.40.0. -
Update to
libp2p-identifyv0.40.0. -
Update to
libp2p-relayv0.13.0. -
Update to
libp2p-kadv0.41.0. -
Update to
libp2p-corev0.37.0. -
Update to
libp2p-gossipsubv0.42.0.
-
-
0.9.007 Sep 2022Release notes
Open source →-
Update to
libp2p-swarmv0.39.0. -
Update to
libp2p-dcutrv0.6.0. -
Update to
libp2p-pingv0.39.0. -
Update to
libp2p-identifyv0.39.0. -
Update to
libp2p-relayv0.12.0. -
Update to
libp2p-kadv0.40.0. -
Update to
libp2p-corev0.36.0.
-
-
0.8.022 Aug 2022Release notes
Open source →-
Update to
libp2p-swarmv0.38.0. -
Update to
libp2p-dcutrv0.5.0. -
Update to
libp2p-pingv0.38.0. -
Update to
libp2p-identifyv0.38.0. -
Update to
libp2p-relayv0.11.0. -
Update to
libp2p-kadv0.39.0. -
Track number of connected nodes supporting a specific protocol via the identify protocol. See PR 2734.
-
Update to
libp2p-corev0.35.0. -
Update to
prometheus-clientv0.18.0. See PR 2822.
-
-
0.7.005 Jul 2022Release notes
Open source →-
Update to
libp2p-corev0.34.0. -
Update to
libp2p-swarmv0.37.0. -
Update to
libp2p-dcutrv0.4.0. -
Update to
libp2p-pingv0.37.0. -
Update to
libp2p-identifyv0.37.0. -
Update to
libp2p-relayv0.10.0. -
Update to
libp2p-kadv0.38.0.
-
-
0.6.121 Jun 2022Release notes
Open source →- Update
dcutrevents fromlibp2p_relay_eventstolibp2p_dcutr_events, to avoid conflict withrelayevents.
- Update
-
0.6.031 May 2022Release notes
Open source →-
Update to
libp2p-corev0.33.0. -
Update to
libp2p-swarmv0.36.0. -
Update to
libp2p-dcutrv0.3.0. -
Update to
libp2p-pingv0.36.0. -
Update to
libp2p-identifyv0.36.0. -
Update to
libp2p-relayv0.9.0. -
Update to
libp2p-kadv0.37.0. -
Update to
prometheus-clientv0.16.0. See PR 2631.
-
-
0.5.004 Apr 2022Release notes
Open source →-
Update to
libp2p-swarmv0.35.0. -
Update to
libp2p-dcutrv0.2.0. -
Update to
libp2p-pingv0.35.0. -
Update to
libp2p-identifyv0.35.0. -
Update to
libp2p-relayv0.8.0. -
Update to
libp2p-kadv0.36.0.
-
-
0.4.022 Feb 2022Release notes
Open source →-
Update to
libp2p-corev0.32.0. -
Update to
libp2p-swarmv0.34.0. -
Update to
libp2p-pingv0.34.0. -
Update to
libp2p-identifyv0.34.0. -
Update to
libp2p-relayv0.7.0. -
Update to
libp2p-kadv0.35.0. -
Move from
open-metrics-clienttoprometheus-client(see PR 2442). -
Drop support for gossipsub in wasm32-unknown-unknown target (see PR 2506).
-
-
0.3.027 Jan 2022 -
0.2.016 Nov 2021 -
0.1.001 Nov 2021 -
0.1.0-rc.115 Oct 2021 pre-releaseNothing published for this version