←back to thread

176 points zorlack | 1 comments | | HN request time: 0s | source

I've frequently found myself using [nvitop](https://github.com/XuehaiPan/nvitop) to diagnose GPU/CPU contention issues.

The two best things about it are:

- It's easy to install if I can access pip in the container

- It makes a compelling screenshot (which helps me communicate with coworkers.)

With those two lessons in mind: Here is Sping!

Purpose: Help observe and diagnose latency issues at layer 4+ (TCP/HTTP/HTTPS)

Two good things about it:

- It's easy to install if you have pip. (Available at [service-ping-sping](https://pypi.org/project/service-ping-sping/) on PyPi)

- It makes a compelling screenshot.

Not sure if this is the kind of thing that anyone else would be interested in. But I've enjoyed making it and intend to keep using it.

Show context
johnQdeveloper ◴[] No.45009249[source]
Just fyi, looks like the shortened command defaults has a bug based on the docs @ https://pypi.org/project/service-ping-sping/

(i.e. # HTTP monitoring with interactive UI sping google.com )

  sping johnqdeveloper.com     
  Usage: sping [OPTIONS] URL
  Try 'sping --help' for help.
  ╭─ Error ──────────────────────────────────────────────────────────────────────╮
  │ Invalid value for '--palette': <ColorPalette.SUNSET:   'sunset'> is not one of │
  │ 'sunset', 'ocean', 'forest', 'volcano', 'galaxy', 'arctic', 'neon',          │
  │ 'monochrome'.                                                                  │
  ╰──────────────────────────────────────────────────────────────────────────────╯
replies(1): >>45009320 #
zorlack ◴[] No.45009320[source]
Thank you for reporting this!

Would you mind telling me what environment you found this behavior in, and how you installed the app?

I've been testing in ubuntu containers doing:

    pip3 install service-ping-sping --break-system-packages
Thank you so much!!

*EDIT:*

I think this is to do with me not being specific about what version of typer I depend upon... working on it now!

This is now fixed in 0.2.11. Thanks @johnQdeveloper

replies(1): >>45014267 #
1. johnQdeveloper ◴[] No.45014267[source]
Yeah it was popos which is basically ubuntu.

pip install service-ping-sping

was how it was installed

Thanks for fixing.