Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.52 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.52 KB

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