Hyperledger Fabric monitoring project based on kubernetes.
This project is meant to monitor your Fabric network's status. The monitoring targets have 2 part:
There are 5 parts of this project:
Build hyperlook binary and docker image:
cd hyperlook/
CGO_ENABLED=0 go build
docker build -t hyperlook:latest .
Build netctl binary and docker image:
cd hyperlook/fabric-sample-network/netctl/
./build.sh
I perfer to install Kubernetes through kubeadm
, See this official doc.
I perfer to install prometheus through prometheus-operator
, see this doc.
Hyperlook can analysis logs based on elasticsearch, so we must deploy it first. See this doc.
After deploy, the elasticsearch needs some time to work well (Maybe more than 20 mins, which is depends on your vm's performance).
See here.
cd hyperlook/
kubectl create -f kubernetes/manifests/
Open your browser and go to http://<your-host-ip>:30902
, login with username admin
and password admin
. Then import my Fabric dashboard in hyperlook/grafana-dashboard/Fabric.json
cd hyperlook/alert/
kubectl create -f prometheus-config.yaml
# make changes effective
curl -X POST <your-host-ip>:30900/-/reload
docker exec -ti netctl sh
netctl createchannel
netctl joinchannel
netctl installCC
netctl instantiateCC
netctl invokeCC
netctl queryCC
netctl upgradeCC
# OR
docker exec -ti cli bash
scripts/script.sh
After operation, you will see the monitoring data curve on your grafana dashboard.