🏎 NBping
NBping is a Ping tool developed in Rust. It supports concurrent Ping for multiple addresses, visual chart display, real-time data updates, and other features.
[中文文档](./README_ZH.md)
📢 **NBPing (formerly Nping)**
> [!IMPORTANT]
> **Renaming Notice**
>
> This project has been officially renamed from **Nping** to **NBPing**.
>
> Please update your bookmarks, dependencies, and installation scripts accordingly. The old name is now deprecated and will no longer be maintained.
> ```bash
> nbping --help
> ```
**Exporter Mode**
Now NBping supports exporting ping metrics to Prometheus format, so you can visualize them with tools like Grafana.
```bash
nbping exporter www.baidu.com www.google.com -i 1 -p 9100
```
Then, you can scrape the metrics from `http://localhost:9100/metrics`
You can use Grafana to visualize the data:
## Installation
#### MacOS Homebrew
```bash
brew install nbping
nbping --help
```
## Feature:
- TCP Ping support
- IP range Ping support
## Roadmap:
- Optimize UI interface, add more dynamic effects.
## Usage
```bash
nbping www.baidu.com www.google.com www.apple.com www.sina.com -c 20 -i 2
nbping --help
🏎 NBping mean NB Ping, A Ping Tool in Rust with Real-Time Data and Visualizations
Usage: nbping [OPTIONS] ...
Arguments:
... target IP address or hostname to ping
Options:
--config Path to a YAML config file (CLI flags override its values)
-c, --count Number of pings to send [default: 0 = unlimited]
-i, --interval Interval in seconds between pings [default: 0]
-6, --force_ipv6 Force using IPv6 (config-only field can also enable this)
-m, --multiple Specify the maximum number of target addresses, Only works on one target address [default: 0]
-v, --view-type Initial view mode: graph/table/point/sparkline (switch at runtime with 1-4 / Tab) [default: graph]
-o, --output