Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/beacon-metrics-gazer
Collects network wide participation metrics given a range of indexes
https://github.com/dapplion/beacon-metrics-gazer
Last synced: about 19 hours ago
JSON representation
Collects network wide participation metrics given a range of indexes
- Host: GitHub
- URL: https://github.com/dapplion/beacon-metrics-gazer
- Owner: dapplion
- Created: 2023-04-06T09:44:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T20:01:00.000Z (about 1 year ago)
- Last Synced: 2024-12-27T05:04:04.580Z (11 days ago)
- Language: Rust
- Homepage: https://crates.io/crates/beacon-metrics-gazer
- Size: 3.69 MB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beacon-metrics-gazer
Collects network wide participation metrics given a range of indexes
```
Collects network wide participation metrics given a range of indexesUsage: beacon-metrics-gazer [OPTIONS]
Arguments:
Beacon HTTP API URL: http://1.2.3.4:4000Options:
Metrics server bind address [default: 127.0.0.1]
-H, --headers Extra headers sent to each request to the beacon node API at `url`. Same format as curl: `-H "Authorization: Bearer {token}"`
--ranges Index ranges to group IDs as JSON or TXT. Example: `{"0..100": "lh-geth-0", "100..200": "lh-geth-1"}
--ranges-file Local path or URL containing a file with index ranges with the format as defined in --ranges
--dump Dump participation ranges print to stderr on each fetch
-p, --port Metrics server port [default: 8080]
--address
-v, --verbose Increase verbosity level
-h, --help Print help
-V, --version Print version```
It's convenient to upload the ranges file somewhere persistent like a Github gist
```
docker run dapplion/beacon-metrics-gazer http://80.1.2.80:4000 --ranges-file https://pastebin.com/raw/FfJdfJrV
```The format of the ranges file is very flexible, can be JSON, YAML or plain text:
```
0-500 Nethermind lighthouse-0
500-1000 Nethermind lighthouse-1
1000-1500 Nethermind teku-0
1500-2000 Nethermind teku-1
2000-2500 Nethermind lodestar-0
2500-3750 Gateway lh + nethermind
3750-5000 Gateway lh + nethermind
```## From dockerhub
```
docker run dapplion/beacon-metrics-gazer --help
```## bin usage
```
cargo install beacon-metrics-gazer
```
```
beacon-metrics-gazer --help
```