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.0.post3.tar.gz (9.5 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.0.post3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pjlab_hstat-0.1.0.post3.tar.gz.

File metadata

  • Download URL: pjlab_hstat-0.1.0.post3.tar.gz
  • Upload date:
  • Size: 9.5 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.0.post3.tar.gz
Algorithm Hash digest
SHA256 7497218aadba4340656e8580fa137bb29c2bd9d267635f4490a991f6ecf33d66
MD5 8b2c0ffaa7229c4f26de691ff1220709
BLAKE2b-256 ab577972f538578396f48eaafabc8e9f316b3afd5d05540d90d9cdc03d461c4e

See more details on using hashes here.

File details

Details for the file pjlab_hstat-0.1.0.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for pjlab_hstat-0.1.0.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 de92506e18b013cc8be6e162d8188e9c09d75b61dfcbdbbbf6b0a76ef124acd3
MD5 f1500850087ba22b77794583af0ec134
BLAKE2b-256 1495111645eaf886a66cde7ba4b5a7c737a33e956500806f85ab834b08c24d43

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