Nping
🏎 Nping mean NB Ping, A Ping Tool in Rust with Real-Time Data and Visualizations
Install / Use
/learn @hanshuaikang/NpingREADME
📢 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.
nbping --help
[New Feature] 🛰️ NBping Prometheus Exporter Now Supported
Now, NBping supports exporting ping metrics to Prometheus format. You can use the exporter subcommand to start the exporter server. Learn more
nbping exporter www.baidu.com www.google.com -i 1 -p 9100
Then, you can scrape the metrics from http://localhost:9100/metrics
Graph View
<p align="center"> <img src="docs/imgs/black.gif" alt="NBping demo" width="100%"> </p>Table View
<p align="center"> <img src="docs/imgs/table.gif" alt="NBping demo" width="100%"> </p>Point View
<p align="center"> <img src="docs/imgs/point.gif" alt="NBping demo" width="100%"> </p>Sparkline View
<p align="center"> <img src="docs/imgs/sparkline.gif" alt="NBping demo" width="100%"> </p>Exporter Mode
Now NBping supports exporting ping metrics to Prometheus format. you can use exporter subcommand to start the exporter server.
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
<p align="center"> <img src="docs/imgs/grafana.png" alt="NBping demo" width="100%"> </p>Installation
MacOS Homebrew
brew install nbping
nbping --help
Feature:
- TCP Ping support
- IP range Ping support
Roadmap:
- Optimize UI interface, add more dynamic effects.
Usage
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] <TARGET>...
Arguments:
<TARGET>... target IP address or hostname to ping
Options:
-c, --count <COUNT> Number of pings to send [default: 65535]
-i, --interval <INTERVAL> Interval in seconds between pings [default: 0]
-6, --force_ipv6 Force using IPv6
-m, --multiple <MULTIPLE> Specify the maximum number of target addresses, Only works on one target address [default: 0]
-v, --view-type <VIEW_TYPE> View mode graph/table/point/sparkline [default: graph]
-o, --output <OUTPUT> Output file to save ping results
-h, --help Print help
-V, --version Print version
Exporter Usage
nbping exporter www.baidu.com www.google.com -i 1 -p 9100
./nbping exporter --help
Exporter mode for monitoring
Usage: nbping exporter [OPTIONS] <TARGET>...
Arguments:
<TARGET>... target IP addresses or hostnames to ping
Options:
-i, --interval <INTERVAL> Interval in seconds between pings [default: 1]
-p, --port <PORT> Prometheus metrics HTTP port [default: 9090]
-h, --help Print help
Acknowledgements
Thanks to these people for their feedback and suggestions for 🏎NBping!
| ThatFlower | zx4i | snail2sky | shenshouer | vnt-dev | qingyuan0o0 | Onlywzr
Thanks to these self-media for reposting and paying attention to 🏎NBping!
| 阮一峰的网络日志 |Rust 中文社区 | 公众号:奇妙的linux世界 | 公众号:IT运维技术圈 | X:@geekbb | 公众号:一飞开源 | 公众号: 开源日记
Star History
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
