-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b92d6d7
commit 495d037
Showing
1 changed file
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,29 @@ | ||
# polkadot-telemetry-scrapper | ||
Reversed engineered scrapper that scrapes specified data from https://telemetry.polkadot.io, then it creates metrics from the streamed data. | ||
Reversed engineered scrapper that scrapes specified chain from https://telemetry.polkadot.io, then it creates metrics from the streamed data. | ||
|
||
## How to Run | ||
### Local | ||
#### Prerequisites | ||
1. docker daemon | ||
2. docker-compose | ||
|
||
* Clone repository | ||
``` | ||
git clone https://github.com/mmd-afegbua/polkadot-telemetry-scrapper.git && cd polkadot-telemetry-scrapper | ||
``` | ||
* Input your preferred chain | ||
|
||
* Run the scrapper on your local | ||
``` | ||
node index.js | ||
``` | ||
Your metrics will be available on http://localhost:8080/metrics | ||
|
||
* Start up prometheus, grafana and alert manager | ||
``` | ||
docker-compose up | ||
``` | ||
Prometheus endpoint will be available at http://localhost:9090. | ||
Grafana endpoint will be on http://localhost:3000. Default username: admin. password: admin. | ||
|
||
* Create a grafana test dashboard using the JSON file in `grafana/test.json` |