https://github.com/glottologist/cosmoping
Latency report generator for Cosmos SDK addr book
https://github.com/glottologist/cosmoping
Last synced: 11 months ago
JSON representation
Latency report generator for Cosmos SDK addr book
- Host: GitHub
- URL: https://github.com/glottologist/cosmoping
- Owner: glottologist
- License: gpl-3.0
- Created: 2024-11-07T06:49:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T17:01:11.000Z (over 1 year ago)
- Last Synced: 2025-01-15T11:10:39.460Z (over 1 year ago)
- Language: Rust
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cosmoping
Latency report generator for Cosmos SDK addr book
## Usage
To get a basic latency report run cosmoping against a CosmosSDK addrbook.json file:
```bash
cosmoping latency --addrbook-path
```
The terminal will print the results in markdown format:
```markdown
| IP Address | Port | ID | Latency(ms) | City | Country |
| ---------- | ------ | ---------- | ----------- | ---- | ------- |
| | | | 36354 | | |
| | | | 36328 | | |
```
### Results output
You can supply an output path to save the results to file:
```bash
cosmoping latency --addrbook-path --output-path ./latencies.md
```
### Location data
You can get additional IP location data by supplying an api key from [IpInfo](https://ipinfo.io/):
```bash
cosmoping latency --addrbook-path --output-path ./latencies.md --location-api-key
```
This will enrich the resolvable IPs with locations:
```markdown
| IP Address | Port | ID | Latency(ms) | City | Country |
| ---------- | ------ | ---------- | ----------- | ------- | ---------- |
| | | | 36354 | | |
| | | | 36328 | | |
```