Skip to main content

Cluster host monitor CLI.

Project description

hstat

PyPI Python Version CI Code Style

Lightweight cluster resource monitor CLI.
hstat helps you inspect CPU/MEM/GPU utilization by host or by user with a clear terminal table.


Table of Contents


Screenshots

Query all

query-all

Query by host

query-host

Query by user

query-user


Installation

From source (recommended for now)

git clone <your-repo-url>
cd h-monitor
pip install .

Editable mode (development)

pip install -e .

Verify install

hstat --help

Quick Start

Query one host

hstat --host <hostname>

Query one user

hstat --user <username> --range 1h

CLI Reference

Argument Alias Description Default
--host -w, -n, --node Query by host/node -
--user -u Query by user and auto-discover pods -
--tenant - Tenant label used in metrics query ailab
--namespace - Namespace for brainctl/rjob lookup ailab-ipec
--range - Prometheus range (e.g. 30m, 1h, 6h) 1h

Output Interpretation

  • UTL: utilization meter, percentage-based load
  • MEM: memory usage ratio against requested resources
  • Row order: sorted by GPU utilization (high -> low)
  • Footer AVG: average CPU/MEM/GPU usage across listed pods

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pjlab_hstat-0.1.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pjlab_hstat-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file pjlab_hstat-0.1.1.tar.gz.

File metadata

  • Download URL: pjlab_hstat-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pjlab_hstat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e86788187b9e9ce9c44fab9acc5932c891887eec0aa4647952055cac2c752d1
MD5 fc21347644eab8ab36e309aabb8a97d7
BLAKE2b-256 c9c3b9d5e3b76d6098f0de47cca9bdc470f7da4653c9cf1545c6cb9923c6292a

See more details on using hashes here.

File details

Details for the file pjlab_hstat-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pjlab_hstat-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pjlab_hstat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b973bfe4dab5b51c52cdda2caf54aae0a243b5507946de0ca0c981334091f867
MD5 9d272464b50f05545011fd34750ac299
BLAKE2b-256 10e0a18585b4ee996a81c2588515ea24d7f0847f6db918338fec6a96748134f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page