https://github.com/bxforce/bnc-playground
https://github.com/bxforce/bnc-playground
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bxforce/bnc-playground
- Owner: bxforce
- Created: 2021-01-04T16:25:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-03T08:17:22.000Z (over 5 years ago)
- Last Synced: 2025-10-09T10:53:59.103Z (8 months ago)
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bnc-playground
This project helps bootstraping tools for Hyperledger Fabric and Ethereum Blockchains.
## Monitoring
The folder `resources` contains default config for monitoring of HLF with Grafana dashboards.
You can start the stack using the following commands:
* Run the exporter of the host machine metrics
```
docker run -d --name node_exporter --network bnc_network prom/node-exporter
```
* Run the exporter of the docker containers metrics
```
docker run -d --name cadvisor --network bnc_network -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker:/var/lib/docker:ro -p 8080:8080 gcr.io/cadvisor/cadvisor:v0.38.4
```
* Run prometheus to gather metrics
```
docker run -d --name prometheus --network bnc_network -v $PWD/resources/prometheus.yml:/etc/prometheus/prometheus.yml -p 9090:9090 prom/prometheus --config.file=/etc/prometheus/prometheus.yml
```
* Run prometheus to gather metrics
```
docker run -d --name grafana --network bnc_network -p 3000:3000 -v grafana-data:/var/lib/grafana \
-v $PWD/resources/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml \
-v $PWD/resources/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml \
-v $PWD/resources/grafana/grafana.ini:/etc/grafana/grafana.ini \
-v $PWD/resources/grafana/dashboards:/var/lib/grafana/dashboards \
grafana/grafana:6.5.0
```