Dashboard Features
Implementation | Comments | |
---|---|---|
Sectors | ||
Mpool | ||
Storage Info | ||
Workers Info | ||
Sealing | ||
Power | ||
Wallets | ||
Chain | ||
Deadlines | ||
Deals | Partial | |
Online data transfers | Visualize granted datacap | |
Fil+ | Visualize granted datacap | |
Address lookup | View friendly names instead of boring addresses |
Architecture
-------------------------- ------------ --------------------- ------------ | Lotus Miner | | | | Grafana | | Web Client | | lotus-exporter-farcaster | <------- | Prometheus | <------- | farcaster-dashboard | <------- | | -------------------------- ------------ --------------------- ------------ | | ------------------------- |-> | Lotus Daemon | | ------------------------- | | ------------------------- |-> | Lotus Markets | -------------------------Lotus farcaster comes with 2 Components :
Security
Lotus-exporter-farcaster is running locally on the miner without any specific privilege nor access to other servers.
It will follow prometheus guidelines :
Benefits
Tutorials
Deep dive in Lotus farcaster features
Step by step installation tutorial
Installation & requirements
A Grafana / Prometheus working environement (local or remote)
- Easy to deploy
- Grafana installation guide (Version 8.1.2)
- Prometheus is available as package in Ubuntu 20.0 (Version 2.20.1)
Locally installed on the miner node only
- prometheus-node-exporter
- python3-toml
- python3-aiohttp
- py-multibase
- lotus-exporter-farcaster
Tested environment
- Grafana : 8.1.0
- Prometheus : 2.20.1
- Ubuntu : 20.04.1 LTS
- Python : 3.8
Install lotus-exporter-farcaster - Standalone
git clone https://github.com/s0nik42/lotus-farcaster.git cd lotus-farcaster/lotus-exporter-farcaster chmod +x install.sh ./install.sh LOTUS_USER_USERNAME
Install lotus-exporter-farcaster - Docker (alternative)
Farcaster can also run as a Docker container.
The container that corresponds to this repository will run the `docker_run_script.sh` script which just loops over calling lotus-farcaster code at a specific frequency (default: every minute)
This can be overriden by editing the Dockerfile. In case execution exceed the set requency, the execution restart after 10 seconds.
The output of the lotus-farcaster is written to `/data/farcaster.prom` inside the container which should be a bind mount in prometheus node exporter path.
Optional : This could be use in conjunction with a dockerised version of prometheus node_exporter (instructions to get the node_exporter container going
Building the container (as root)
apt install docker.io docker build -t lotus-farcaster:latest -f dockerfiles/Dockerfile .
Running the container (as root)
Lotus-exporter-farcaster use 2 configuration files:
- config.toml contains connection strings to miner,daemon and markets API. This file is mandatory.
- addresses.toml contains address lookup that replace filecoin addresses by readable names. This file is optional.
cd lotus-exporter-farcaster cp config.toml.example config.toml nano config.toml # Optional cp addresses.toml.example addresses.toml nano addresses.toml
export PROMETHEUS_NODE_EXPORTER_PATH="/var/lib/prometheus/node-exporter/" docker run --name lotus-farcaster -d \ --mount type=bind,source=$PROMETHEUS_NODE_EXPORTER_PATH,target=/data \ --network=host \ lotus-farcaster
Docker Debug (as root)
docker ps [-a] docker logs lotus-farcaster docker exec -it lotus-farcaster bash
Uninstall docker (as root)
docker stop lotus-farcaster docker rm lotus-farcaster docker image rm lotus-farcaster
Install the Grafana Dashboard
Import in Grafana the relevent dashboard file from ./lotus-farcaster/grafana-dashboard
Contributing
If you're interested in contributing to the Grafana project:<
- Translate : help us by translating our dashboard to other languages.
- Panels : submit your customized panels
- Donate : Filcoin Address : f3v3lj5jrsvv3nwmsvvj57yyty6ndb27oyi4yaqhwzst3emdv25hefna6vxhtpjb5pytwahdod67syxjyzba3q