mxinden / kademlia-exporter

Libp2p Kademlia Exporter exposing Prometheus metrics
MIT License
21 stars 6 forks source link
kademlia libp2p monitoring peer-to-peer prometheus

Kademlia Exporter

Exporter exposing Prometheus metrics for libp2p Kademlia distributed hash tables.

Number of nodes

Random node lookup

Information below is likely outdated. Code is the source of truth.

Quickstart

cargo run -- --config-file config.toml

curl localhost:8080/metrics

Ip localization

Optionally the exporter can estimate a peers location through the Max Mind Geo DB. See max_mind_db_path parameter in config.toml.

Cloud provider

Optionally the exporter can estimate the cloud provider a peer is hosted in via a list of CIDRs. See .assets/cidrs.r to generate a list and cloud_provider_cidr_db_path parameter in config.toml to specify the generated .csv file.

Metrics