gping README

The project's README from github.com/orf/gping. As one markdown file: README.md.

gping 🚀

Crates.io Actions Status

Ping, but with a graph.

Comes with the following super-powers:

Table of Contents

Packaging status

Install :cd:

Usage :saxophone:

Just run gping [host]. host can be a command like curl google.com if the --cmd flag is used. You can also use shorthands like aws:eu-west-1 or aws:ca-central-1 to ping specific cloud regions. Only aws is currently supported.

$ gping --help
Ping, but with a graph.

Usage: gping [OPTIONS] [HOSTS_OR_COMMANDS]...

Arguments:
  [HOSTS_OR_COMMANDS]...  Hosts or IPs to ping, or commands to run if --cmd is provided. Can use cloud shorthands like aws:eu-west-1.

Options:
      --cmd
          Graph the execution time for a list of commands rather than pinging hosts
  -n, --watch-interval <WATCH_INTERVAL>
          Watch interval seconds (provide partial seconds like '0.5'). Default for ping is 0.2, default for cmd is 0.5.
  -b, --buffer <BUFFER>
          Determines the number of seconds to display in the graph. [default: 30]
  -4
          Resolve ping targets to IPv4 address
  -6
          Resolve ping targets to IPv6 address
  -i, --interface <INTERFACE>
          Interface to use when pinging
  -s, --simple-graphics
          Uses dot characters instead of braille
      --vertical-margin <VERTICAL_MARGIN>
          Vertical margin around the graph (top and bottom) [default: 1]
      --horizontal-margin <HORIZONTAL_MARGIN>
          Horizontal margin around the graph (left and right) [default: 0]
  -c, --color <color>
          Assign color to a graph entry. This option can be defined more than once as a comma separated string, and the order which the colors are provided will be matched against the hosts or commands passed to gping. Hexadecimal RGB color codes are accepted in the form of '#RRGGBB' or the following color names: 'black', 'red', 'green', 'yellow', 'blue', 'magenta','cyan', 'gray', 'dark-gray', 'light-red', 'light-green', 'light-yellow', 'light-blue', 'light-magenta', 'light-cyan', and 'white'
  -h, --help
          Print help information
  -V, --version
          Print version information
      --clear
          Clear the graph from the terminal after closing the program

gping (orf/gping)

Searching Database…

12.7K ·GitHub
这是什么?gping 是一个用 Rust 编写的命令行工具,可以同时 ping 一个或多个主机,并在终端里实时显示响应时间的曲线图,而不是像 ping 那样滚动显示文本输出。
这是图形界面程序,还是在终端里运行?它是一个普通的终端程序(CLI/TUI),没有单独的窗口,直接在终端里绘制图表,在 Windows、macOS 和 Linux 上的使用方式相同。
我用它之前需要安装 Rust 吗?只有通过 Cargo 安装时才需要,且需要 rustc 1.67.0 或更新版本;其他打包安装方式(Homebrew、apt、Scoop、Docker 等)都提供现成的可执行文件,无需安装 Rust。
我能直接 ping 云服务的地区吗?可以,使用类似 'aws:eu-west-1' 或 'aws:ca-central-1' 的简写,但目前只支持这种方式的 AWS 地区。
我能自定义图表的外观吗?可以,gping 支持为绘制的线条设置自定义颜色。
如果我的 Linux 发行版 glibc 版本较旧怎么办?从最新的 GitHub 发布页下载 MUSL 版本,而不是标准的可执行文件,这样可以避免 glibc 版本问题。
--cmd 参数是做什么的?它不是 ping 某个主机,而是绘制每次运行指定 shell 命令所需时间的曲线图,例如 'gping --cmd "curl google.com"'。
What are similar projects?oha, spotify-tui, fx, bandwhich, sampler, just, bottom, goreplay
Creator
orf
Size
5.6 MB
Stars
12.7K
Age
11y
Commits · 90 Days