Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

cryptape/ckb-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CKBAnalyzer

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

CKBAnalyzer acts as a metrics agent and stores the data into Timescaledb, then visualize using Grafana.

Visit the online dashboards at [https://ckbmonitor.bit.host/], and you can use the maintained dashboards.

Getting Started

Setup TimescaleDB and Grafana services via docker-compose

$ cp docker/.env.example docker/.env

$ docker-compose -f docker/docker-compose.yaml up -d

$ source docker/.env && psql "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:${POSTGRES_PORT:-"5432"}" -f src/schema.sql

Install CKBAnalyzer

Download from releases.

Run CKBAnalyzer

Mostly environment variables are declared inside docker/.env.example. You can specify an environment file with --envfile.

ckb-analyzer \
    --node.rpc="http://127.0.0.1:8111" \
    --node.subscription="127.0.0.1:18114" \
    --envfile docker/.env

License: MIT