lotus/tools/stats
Raúl Kripalani 4f9c907248 rename build.{BlockDelay=>BlockDelaySecs}.
Since this global is not typed as a time.Duration,
rather as an int, it makes sense to clarify the unit.
2020-06-30 14:26:49 +01:00
..
.gitignore
chain.dashboard.json Sync dashboard to what we have on stats.testnet.filecoin.io 2020-01-24 00:13:15 +00:00
docker-compose.yml
env.stats
head_buffer_test.go fix tests 2020-04-23 15:53:24 -07:00
head_buffer.go fix tests 2020-04-23 15:53:24 -07:00
main.go stats: add flag to disable sync wait 2020-03-10 06:10:16 +00:00
metrics.go stats: increase miner power lookup perf 2020-06-16 02:48:27 +00:00
README.md
rpc.go rename build.{BlockDelay=>BlockDelaySecs}. 2020-06-30 14:26:49 +01:00
setup.bash

Stats

Stats is a small tool to push chain information into influxdb

Setup

Influx configuration can be configured through env variables.

INFLUX_ADDR="http://localhost:8086"
INFLUX_USER=""
INFLUX_PASS=""

Usage

Stats will be default look in ~/.lotus to connect to a running daemon and resume collecting stats from last record block height.

For other usage see ./stats --help

go build -o stats *.go 
. env.stats && ./stats

Development

Start grafana and influxdb containers and import the dashboard to grafana. The url of the imported dashboard will be returned.

If the script doesn't work, you can manually setup the datasource and import the dashboard.

docker-compose up -d
./setup.bash

The default username and password for grafana are both admin.