Skip to content

Facilitate observation of the CKB network

License

Notifications You must be signed in to change notification settings

chanhsu001/ckb-analyzer

 
 

Repository files navigation

CKBAnalyzer

The purpose of CKBAnalyzer is to facilitate observation of the CKB network.

The program does several things:

  • Crawl the CKB network to gather the nodes information
  • Store the main-chain blocks

CKBAnalyzer is still working in progress rapidly.

Storage

CKBAnalyzer acts as a metrics agent and stores the data into Timescaldb.

Visualization

We visualize data using Grafana. Our Grafana dashboards are maintained in this repository.

Install

Download from releases.

Usage

Environment Variables

variable required description
IPINFO_IO_TOKEN false ipinfo.io authentication token, is used by PeerScanner to look up the geographical location by nodes' ip.
CKB_ANALYZER_POSTGRES true Postgres login key

Help

USAGE:
    ckb-analyzer [OPTIONS] --node.rpc <URL> --node.subscription <URL>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --node.rpc <URL>
        --node.subscription <URL>
        --topics <TOPIC>...           [default: PeerCrawler,PeerScanner]  [possible values: PeerCrawler, PeerScanner]

Example

CKB_ANALYZER_POSTGRES="postgres://postgres:postgres@localhost:5432/ckbraw" \
ckb-analyzer --node.rpc="http://127.0.0.1:8111" --node.subscription="http://127.0.0.1:18114"

License: MIT

About

Facilitate observation of the CKB network

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%