lotus/cmd/lotus-stats
Travis Person bd4322f56f Update lotus-stats with a richer cli
This updates lotus stats to use urfave instead of the golang flags
package. This brings with it some common features from other lotus tools
such as the use of the `FULLNODE_API_INFO` env and other parts of the
lotus cli package.

This also includes the latest dashboard.
2020-11-04 18:06:17 +00:00
..
chain.dashboard.json Update lotus-stats with a richer cli 2020-11-04 18:06:17 +00:00
docker-compose.yml Update lotus-stats with a richer cli 2020-11-04 18:06:17 +00:00
env.stats Update lotus-stats with a richer cli 2020-11-04 18:06:17 +00:00
main.go Update lotus-stats with a richer cli 2020-11-04 18:06:17 +00:00
README.md extract stats package 2020-07-03 16:52:40 +02:00
setup.bash Update lotus-stats with a richer cli 2020-11-04 18:06:17 +00:00

lotus-stats

lotus-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

lotus-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 ./lotus-stats --help

go build -o lotus-stats *.go 
. env.stats && ./lotus-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.