Skip to main content

Lightweight NVIDIA GPU monitor — 20 notification channels (Slack, Discord, Telegram, ntfy, Teams, PagerDuty, Zulip, OpenClaw, and more), Prometheus/InfluxDB/Datadog metrics, crash/ECC detection, Kubernetes, GitHub Pages dashboard

Project description

gpu-monitor — GPU crash and OOM alerting, zero dependencies

Version 1.0.0 Python 3.10+ License: MIT PyPI 20 channels GitHub Stars

Your training crashed at 3AM. Six hours of wasted compute. You find out in the morning.

gpu-monitor catches it the moment it happens and alerts you — before hours of compute are wasted.

One Python file. Zero dependencies. 20 notification channels.

pip install gpuwatch
export SLACK_WEBHOOK_URL="..."   # or Discord, Telegram, ntfy — 20 channels
gpu-monitor

Three lines. You're covered.

Star it if it saves your next run — helps other ML engineers find the tool.


Table of Contents


What Happens When...

Real scenarios gpu-monitor handles automatically:

Your training job crashes at 3 AM:

gpu-cluster-1 | GPUs went idle — processes exited: 12345, 12346, 12347 | avg 1% | 38°C | mem 2G/320G (1%)

You wake up to this Slack message and restart within minutes, instead of discovering 8 lost GPU-hours in the morning.

A GPU overheats during a long run:

gpu-cluster-1 | GPU 2 temperature CRITICAL: 94°C (limit 92°C) | util 88% | fan 98%

You get paged before hardware damage or thermal throttling silently ruins your results.

Memory is quietly leaking across epochs:

gpu-cluster-1 | GPU 0 memory leak detected: 18G → 31G (+72%) over 10min | process python3[alice]

Caught before you OOM-crash at epoch 47 and lose 6 hours of checkpoints.

One GPU goes idle while others are busy (hung worker):

gpu-cluster-1 | GPU 3 idle (2%) while others active (87-91%) — possible hung worker

Without this alert, a single stuck DataLoader worker can silently halve your throughput for hours.

ECC errors silently corrupting your gradients:

gpu-cluster-1 | GPU 1 uncorrected ECC errors: +3 since last check | retire this GPU before it corrupts results

Silent ECC errors can produce subtly wrong model weights — you catch hardware failure before it invalidates an entire experiment.

GPU memory approaching 100% — OOM crash imminent:

gpu-cluster-1 | GPU 2 memory CRITICAL: 78G/80G (98%) — OOM crash imminent | util 94% | 81°C

You get the alert in time to reduce batch size or kill secondary jobs — instead of discovering a failed run 6 hours later.


Quick Start

Step 1 — Install:

Note: The PyPI package is named gpuwatch (gpu-monitor was taken). The installed command is still gpu-monitor.

# Recommended
pip install gpuwatch

# Alternative: single-file download (no pip required)
curl -O https://raw.githubusercontent.com/reacher-z/gpu-monitor/main/gpu_monitor.py

Step 2 — Pick your notification channel:

# Slack
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/YOUR/WEBHOOK/URL"

# Discord
export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/YOUR/WEBHOOK"

# Telegram
export TELEGRAM_BOT_TOKEN="your-bot-token"
export TELEGRAM_CHAT_ID="your-chat-id"

# ntfy — zero signup, push to your phone right now
export NTFY_URL="https://ntfy.sh/my-gpu-cluster-abc123"

Step 3 — Run:

gpu-monitor
# or: python gpu_monitor.py

Set multiple env vars to fan out to multiple channels simultaneously.

Useful CLI flags:

gpu-monitor --once          # check once, print status, exit
gpu-monitor --json          # current GPU stats as JSON (pipe to jq, scripts, etc.)
gpu-monitor --watch 2       # live color terminal table, 2-second refresh
gpu-monitor --channels      # show which notification channels are currently configured
gpu-monitor --test-notify   # send a test alert to all configured channels
gpu-monitor --web 8080      # dashboard + Prometheus /metrics at :8080
gpu-monitor --version       # print version and exit

Run as a persistent background service (systemd):

curl -O https://raw.githubusercontent.com/reacher-z/gpu-monitor/main/gpu-monitor.service
# Edit the Environment= lines with your credentials, then:
sudo cp gpu-monitor.service /etc/systemd/system/gpu-monitor@$USER.service
sudo systemctl daemon-reload
sudo systemctl enable --now gpu-monitor@$USER
sudo journalctl -u gpu-monitor@$USER -f   # follow logs

Full monitoring stack (Prometheus + Grafana + Alertmanager):

cp .env.example .env && $EDITOR .env   # add your notification credentials
docker compose -f docker-compose.monitoring.yml up -d
# Grafana at http://localhost:3000  (admin/admin)
# Import grafana/dashboard.json for the pre-built GPU dashboard

Kubernetes — monitor every GPU node automatically:

# Edit kubernetes/secret.yaml with your credentials
kubectl apply -k kubernetes/

Example Output

--watch live terminal view (runs in your terminal like htop for GPUs):

gpu-cluster-1          2026-03-07 14:32
GPU  Name                 Util   Mem         Temp   Power   Procs
  0  NVIDIA A100-SXM4-80  87%    18G/80G     72°C   312W    python3[alice]
  1  NVIDIA A100-SXM4-80  91%    22G/80G     75°C   318W    torchrun[bob]
  2  NVIDIA A100-SXM4-80  83%    18G/80G     69°C   305W    python3[carol]
  3  NVIDIA A100-SXM4-80  88%    21G/80G     71°C   310W    torchrun[bob]

--once quick status check:

gpu-cluster-1 | 2026-03-07 14:32 | avg 87% | 72°C | 1820W | mem 188G/320G (59%) | up 6h12m
[87% 91% 83% 88% 92% 79% 85% 90%]
GPU0: python3(18G)[alice] | GPU1: torchrun(22G)[bob] | GPU3: python3(18G)[carol]

Slack/Discord alert — all GPUs went idle (crash detected):

gpu-cluster-1 | GPUs went idle — processes exited: 12345, 12346, 12347 | avg 1% | 38°C | mem 2G/320G (1%)

Slack/Discord alert — extended idle:

gpu-cluster-1 | 2026-03-07 15:01 | avg 2% | 38°C | idle 8min
All GPUs idle for 8 minutes. Last active: training job (alice)

--test-notify output:

Test notification sent to: Slack, Discord, ntfy
Not configured:           Telegram, Email, SMS, iMessage, WeCom, Feishu, DingTalk, Bark,
                          Teams, Pushover, Gotify, Mattermost, Google Chat, Zulip, OpenClaw

Why gpu-monitor?

gpu-monitor fills a gap that existing tools don't: unattended background monitoring with instant multi-channel alerts. gpustat and nvitop are excellent for interactive inspection — gpu-monitor is what runs while you're not watching.

Feature gpu-monitor gpustat nvitop wandb
Background alerts
Multi-channel notifications 20 built-in + 80 via Apprise Slack only
Zero dependencies stdlib only
Single file deploy
Crash detection
Temperature alerting
Memory leak detection
ECC error detection
Power throttle alert
Prometheus /metrics ✅ 11 metrics
InfluxDB / Datadog / OTLP
Alertmanager receiver
Live terminal view --watch
Kubernetes DaemonSet
Multi-machine dashboard GitHub Pages (free) ✅ paid
OOM memory warning
Fan failure detection
GPU PCIe bus drop

Features

Alerting — know before things go wrong

  • Crash detection — GPUs suddenly go idle while processes were running → instant alert
  • Idle alert — all GPUs below 10% utilization for 5 min → alert
  • Partial idle — some GPUs idle while others are busy (hung worker) → warning
  • Recovery notification — GPUs become active again after an idle period → notify
  • Temperature alerting — configurable GPU_TEMP_WARN / GPU_TEMP_CRIT thresholds, no Prometheus required
  • Power throttle alert — fires when power draw hits 95% of TDP limit
  • ECC error detection — alert on uncorrected volatile ECC errors (A100/H100/V100); prevents silent training corruption
  • Memory leak detection — alert when GPU memory grows unexpectedly without process changes
  • OOM warningGPU_MEM_WARN (default 90%) and GPU_MEM_CRIT (default 98%) alert before the process crashes with out-of-memory
  • Fan failure detection — alert when fan speed reports 0% while GPU temperature is above threshold (hardware fault)
  • GPU hardware drop — alert when GPU count drops between polls; catches PCIe bus failures and hardware faults

Visibility — always know what your GPUs are doing

  • Periodic status — active: every 10 min, idle: every 30 min
  • Startup notification — know when the monitor comes online
  • GPU processes — shows which processes are using each GPU with username
  • Power draw — watts per GPU in status messages
  • Per-machine color — auto-assigned color bar in Slack/Discord for multi-machine setups
  • Uptime tracking — shows up 2h30m or idle 15min in status
  • --watch — live ANSI color terminal table (lightweight nvtop alternative)
  • --json — machine-readable output: gpu-monitor --json | jq '.gpus[].util'

Observability integrations

  • Prometheus /metrics — 11 metrics when WEB_PORT is set; Grafana-ready
  • InfluxDB export — line protocol to InfluxDB v1/v2 (INFLUXDB_URL)
  • Datadog export — DogStatsD gauges (DATADOG_STATSD_HOST)
  • OpenTelemetry OTLP — export to any OTel-compatible backend (OTEL_EXPORTER_OTLP_ENDPOINT)
  • Alertmanager receiver — route any Prometheus alert to all 20 channels via POST /webhook
  • ALERT_WEBHOOK_URL — POST JSON to any HTTP endpoint on every alert (CI/CD, custom integrations)
  • Web dashboard sparklines--web PORT shows per-GPU utilization history over time

Deployment

  • 20 notification channels — Slack, Discord, Telegram, Email, SMS, iMessage, WeCom, Feishu, DingTalk, Bark, Rocket.Chat, ntfy, Gotify, Pushover, Mattermost, Teams, Google Chat, Zulip, OpenClaw, PagerDuty (+ 80+ more via Apprise)
  • --test-notify — verify all configured channels with one command
  • Kubernetes DaemonSet — deploy to every GPU node with kubectl apply -k kubernetes/
  • GitHub Pages dashboard — multi-machine status page, no extra server needed
  • Watchdog — auto-restart on crash
  • Log rotation — 5 MB × 3 backups

Supported Notification Channels

20 channels built in. Configure any combination — only channels with credentials set are used.

Channel Env var(s) needed
Slack SLACK_WEBHOOK_URL
Discord DISCORD_WEBHOOK_URL
Telegram TELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID
Email (SMTP) EMAIL_SMTP_HOST, EMAIL_USER, EMAIL_PASS, EMAIL_TO
SMS (Twilio) TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM, TWILIO_TO
iMessage IMESSAGE_TO (macOS only)
WeCom (企业微信) WECOM_WEBHOOK_URL
Feishu (飞书) FEISHU_WEBHOOK_URL
DingTalk (钉钉) DINGTALK_WEBHOOK_URL
Bark BARK_URL (self-hosted or api.day.app)
ntfy NTFY_URL (+ optional NTFY_TOKEN)
Gotify GOTIFY_URL + GOTIFY_TOKEN
Pushover PUSHOVER_TOKEN + PUSHOVER_USER
Rocket.Chat ROCKETCHAT_WEBHOOK_URL
Google Chat GOOGLE_CHAT_WEBHOOK_URL
Zulip ZULIP_SITE + ZULIP_EMAIL + ZULIP_API_KEY
Mattermost MATTERMOST_WEBHOOK_URL
Microsoft Teams TEAMS_WEBHOOK_URL
OpenClaw OPENCLAW_WEBHOOK_URL — routes to WhatsApp, Signal, LINE, Matrix, Zalo, 20+ more
PagerDuty PAGERDUTY_INTEGRATION_KEY (Events API v2)
Apprise (80+ more) APPRISE_URLS — requires pip install apprise

Environment Variables

General

Variable Default Description
CHECK_INTERVAL 60 Seconds between GPU checks
IDLE_THRESHOLD 10 Alert when utilization drops below this %
IDLE_MINUTES 5 Minutes idle before the first alert fires
ALERT_COOLDOWN 30 Minutes between repeated alerts
STATUS_ACTIVE 10 Periodic status interval when active (minutes)
STATUS_IDLE 30 Periodic status interval when idle (minutes)
MACHINE_COLOR auto Hex color for Slack/Discord messages
LOG_FILE Log file path (enables rotation)
WEB_PORT Enables local dashboard + /metrics on this port
MEMLEAK_THRESHOLD 30 GPU memory growth % to trigger a leak alert
MEMLEAK_MINUTES 10 Window (minutes) for memory leak detection
GPU_TEMP_WARN 85 °C threshold for high-temperature warning alert
GPU_TEMP_CRIT 92 °C threshold for critical temperature alert
GPU_MEM_WARN 90 GPU memory % to trigger OOM warning alert
GPU_MEM_CRIT 98 GPU memory % to trigger critical OOM alert (imminent crash)
GPU_FAN_FAIL_TEMP 70 °C — alert when fan=0% above this temp; 0 = disabled
ALERT_WEBHOOK_URL HTTP endpoint to POST JSON on every alert
INFLUXDB_URL InfluxDB server URL (e.g. http://influxdb:8086)
INFLUXDB_TOKEN API token (v2) or user:password (v1)
INFLUXDB_BUCKET gpu_metrics InfluxDB v2 bucket or v1 db/rp
INFLUXDB_ORG InfluxDB v2 organization name
DATADOG_STATSD_HOST Hostname of Datadog agent (enables DogStatsD export)
DATADOG_STATSD_PORT 8125 DogStatsD port
OTEL_EXPORTER_OTLP_ENDPOINT OTel Collector URL (e.g. http://otel-collector:4318)
OTEL_SERVICE_NAME gpu-monitor Service name for OTLP resource attributes
OTEL_EXPORTER_OTLP_HEADERS Extra headers as key=val,key2=val2
APPRISE_URLS Space/comma-separated Apprise URLs (pip install apprise required)
GITHUB_PAGES_TOKEN Fine-grained GitHub token (Contents read+write) for pushing dashboard stats
GITHUB_PAGES_REPO Repo to push stats to, e.g. your-username/gpu-monitor

Per-channel variables

Slack

Variable Description
SLACK_WEBHOOK_URL Slack incoming webhook URL

Discord

Variable Description
DISCORD_WEBHOOK_URL Discord webhook URL

Telegram

Variable Description
TELEGRAM_BOT_TOKEN Bot token from @BotFather
TELEGRAM_CHAT_ID Target chat/group/channel ID

Email (SMTP)

Variable Default Description
EMAIL_SMTP_HOST SMTP server hostname
EMAIL_SMTP_PORT 587 SMTP port (STARTTLS)
EMAIL_USER Login username
EMAIL_PASS Login password or app password
EMAIL_TO Recipient(s), comma-separated

SMS (Twilio)

Variable Description
TWILIO_ACCOUNT_SID Twilio account SID
TWILIO_AUTH_TOKEN Twilio auth token
TWILIO_FROM Twilio phone number (E.164 format)
TWILIO_TO Recipient number(s), comma-separated

iMessage (macOS only)

Variable Description
IMESSAGE_TO Recipient phone/email, comma-separated

WeCom (企业微信)

Variable Description
WECOM_WEBHOOK_URL WeCom group bot webhook URL

Feishu (飞书 / Lark)

Variable Description
FEISHU_WEBHOOK_URL Feishu bot webhook URL

DingTalk (钉钉)

Variable Description
DINGTALK_WEBHOOK_URL DingTalk group robot webhook URL

Bark (iOS push)

Variable Description
BARK_URL Bark server URL, e.g. https://api.day.app/YOUR_KEY

ntfy

Variable Description
NTFY_URL ntfy topic URL, e.g. https://ntfy.sh/my-gpu-alerts
NTFY_TOKEN Auth token (optional, for protected topics)

Gotify

Variable Description
GOTIFY_URL Gotify server URL, e.g. http://gotify.example.com
GOTIFY_TOKEN App token from Gotify dashboard

Pushover

Variable Description
PUSHOVER_TOKEN App API token from pushover.net
PUSHOVER_USER Your user/group key

Rocket.Chat

Variable Description
ROCKETCHAT_WEBHOOK_URL Incoming webhook URL (Administration → Integrations → Incoming WebHook)

Google Chat

Variable Description
GOOGLE_CHAT_WEBHOOK_URL Google Chat space webhook URL (Space → Manage webhooks)

Zulip

Variable Default Description
ZULIP_SITE Your Zulip server URL, e.g. https://yourorg.zulipchat.com
ZULIP_EMAIL Bot email address
ZULIP_API_KEY Bot API key
ZULIP_STREAM general Stream to post to
ZULIP_TOPIC GPU Monitor Topic/thread name

Mattermost

Variable Description
MATTERMOST_WEBHOOK_URL Incoming webhook URL (Main Menu → Integrations → Incoming Webhooks)

Microsoft Teams

Variable Description
TEAMS_WEBHOOK_URL Teams incoming webhook URL (channel → ... → Connectors → Incoming Webhook)

OpenClaw

Variable Description
OPENCLAW_WEBHOOK_URL Your OpenClaw webhook URL, e.g. http://your-host:18789/hooks/wake
OPENCLAW_WEBHOOK_SECRET Bearer token (from OpenClaw settings), if auth is enabled

PagerDuty

Variable Description
PAGERDUTY_INTEGRATION_KEY 32-character Events API v2 integration key from PagerDuty

Create an integration in PagerDuty: Service → Integrations → Add integration → Events API v2. Copy the integration key.


Prometheus Metrics

Enable with WEB_PORT:

export WEB_PORT=8080
gpu-monitor
# Metrics at http://localhost:8080/metrics
# Dashboard at http://localhost:8080/

11 exposed metrics, all labeled with gpu index and host:

gpu_utilization_percent, gpu_memory_used_mib, gpu_memory_total_mib, gpu_memory_utilization_percent, gpu_temperature_celsius, gpu_power_watts, gpu_power_limit_watts, gpu_clock_sm_mhz, gpu_fan_speed_percent, gpu_ecc_errors_uncorrected, gpu_process_count

Add to prometheus.yml:

scrape_configs:
  - job_name: gpu
    static_configs:
      - targets: ['your-server:8080']

Pre-built Grafana dashboard is at grafana/dashboard.json — import via Dashboards → Import → Upload JSON. Includes utilization, memory, temperature, and power panels with host and GPU variable filters.

Prometheus alerting rules are at grafana/alerts.yml:

rule_files:
  - rules/gpu-monitor-alerts.yml
Alert Condition Severity
GPUAllIdle avg util < 10% for 5m warning
GPUHighTemperature temp > 85°C for 2m warning
GPUCriticalTemperature temp > 92°C for 1m critical
GPUMemoryHigh mem util > 90% for 5m warning
GPUMemoryFull mem util > 98% for 2m critical
GPUMonitorDown no metrics for 3m critical

Alertmanager Webhook Receiver

When WEB_PORT is set, gpu-monitor also acts as an Alertmanager webhook receiver — forwarding any Prometheus alert (GPU or otherwise) to all 20 configured notification channels.

Configure in Alertmanager:

receivers:
  - name: gpu-monitor
    webhook_configs:
      - url: http://your-server:8080/webhook
        send_resolved: true

Alerts arrive with severity-appropriate formatting (fire icon for critical, warning icon for warning). Resolved alerts are announced separately.

A pre-configured grafana/alertmanager.yml is included that routes all Prometheus alerts through gpu-monitor's webhook receiver automatically.


Kubernetes

Deploy as a DaemonSet to monitor every GPU node:

# Edit kubernetes/secret.yaml with your notification channel credentials
kubectl apply -k kubernetes/

The DaemonSet:

  • Schedules on nodes labeled nvidia.com/gpu: "true"
  • Exposes /metrics on port 8080 with Prometheus scraping annotations
  • Uses spec.nodeName as hostname for per-node identification in alerts
  • Reads credentials from a gpu-monitor-secrets Secret

For Prometheus pod auto-discovery:

# In prometheus.yml:
- job_name: gpu-monitor
  kubernetes_sd_configs:
    - role: pod
      namespaces:
        names: [gpu-monitor]
  relabel_configs:
    - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
      action: keep
      regex: "true"
    - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_port]
      action: replace
      target_label: __address__
      regex: (.+)
      replacement: ${1}:8080

GitHub Pages Dashboard

Real-time GPU dashboard hosted on GitHub Pages — no extra server needed.

Setup:

  1. Enable GitHub Pages in your repo: Settings → Pages → Source: main branch, /docs folder
  2. Create a fine-grained personal access token with Contents: read and write on that repo
  3. Set env vars on each machine:
export GITHUB_PAGES_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxx
export GITHUB_PAGES_REPO=your-username/your-repo
gpu-monitor

The monitor pushes docs/data/{hostname}.json every check interval. The dashboard auto-fetches new data every second — you'll see updates within moments of each push.

Multi-machine: each machine pushes its own file. The dashboard shows all machines side-by-side with online/stale/offline badges.

Variable Description
GITHUB_PAGES_TOKEN Fine-grained token with Contents read+write
GITHUB_PAGES_REPO Repo to push stats to, e.g. owner/repo

Multi-Machine Setup

Deploy to each machine — each gets an auto-assigned color in Slack/Discord and appears on the GitHub Pages dashboard. All report to the same webhook/channel with their hostname clearly labeled in every message.


Setting Up Specific Channels

Setting Up Telegram

  1. Message @BotFather/newbot
  2. Copy the token → TELEGRAM_BOT_TOKEN
  3. Send a message to your bot, then visit https://api.telegram.org/bot<TOKEN>/getUpdates to find your TELEGRAM_CHAT_ID

Setting Up WeCom, Feishu, DingTalk, Bark

WeCom (企业微信)

  1. Open WeCom → Group Chat → Add Group Robot
  2. Copy the webhook URL → WECOM_WEBHOOK_URL

Feishu (飞书 / Lark)

  1. Open Feishu group → Settings → Bots → Add Bot → Custom Bot
  2. Copy the webhook URL → FEISHU_WEBHOOK_URL

DingTalk (钉钉)

  1. Open DingTalk group → Group Settings → Bots → Add Robot → Custom
  2. Set a keyword (e.g. GPU) in security settings
  3. Copy the webhook URL → DINGTALK_WEBHOOK_URL

Bark (iOS)

  1. Install Bark from the App Store
  2. Copy your device URL → BARK_URL (e.g. https://api.day.app/YOUR_DEVICE_KEY)

Setting Up ntfy

ntfy is a zero-signup push notification service. Subscribe via the ntfy app (Android/iOS), web UI, or any HTTP client.

# No account needed — just pick any topic name
export NTFY_URL="https://ntfy.sh/my-gpu-cluster-abc123"
gpu-monitor

Subscribe to the same topic in the ntfy app on your phone to receive alerts instantly. For private topics, generate a token at ntfy.sh/app and set NTFY_TOKEN.

Self-hosted: replace https://ntfy.sh/ with your own server URL.

Setting Up Apprise (80+ Extra Services)

Apprise is an optional dependency that adds 80+ additional services — AWS SNS, Pushbullet, Home Assistant, Matrix, SparkPost, and more — through URL-based configuration.

pip install apprise
export APPRISE_URLS="slack://TokenA/TokenB/TokenC/#channel tgram://bot_token/chat_id"
gpu-monitor

The core gpu-monitor has zero dependencies — Apprise is only activated when installed and APPRISE_URLS is set.

See the full list of URL formats in the Apprise wiki.

Setting Up OpenClaw

OpenClaw is a self-hosted notification router that delivers to 20+ chat platforms — WhatsApp, Teams, Signal, LINE, Mattermost, Matrix, Zalo, and more.

  1. Install and start OpenClaw (see openclaw.ai)
  2. In OpenClaw settings, enable the webhook gateway and copy the URL
  3. Configure:
export OPENCLAW_WEBHOOK_URL="http://your-openclaw-host:18789/hooks/wake"
export OPENCLAW_WEBHOOK_SECRET="your-bearer-token"  # optional, if auth enabled
gpu-monitor

Who Uses gpu-monitor?

gpu-monitor is built for anyone running long GPU workloads who can't watch their machines around the clock.

Designed for:

  • ML researchers and PhD students running overnight training jobs on local or cloud GPUs
  • Lab admins managing shared GPU clusters (4–32 GPUs, multi-user, multi-machine)
  • MLOps and infrastructure engineers who need production-grade GPU observability
  • Self-hosters running local LLMs who want crash and OOM alerts without cloud dependencies

Have a setup you're proud of? Open an issue with the showcase label and share it — setups get featured here.


Privacy and Security

gpu-monitor is a self-contained tool that runs entirely on your hardware:

  • No data sent externally — the only outbound traffic is to the notification channels you configure (your Slack workspace, your email server, etc.)
  • No credentials stored — everything is passed via environment variables at runtime; nothing is written to disk
  • No telemetry — no usage tracking, no phone-home, no analytics
  • Open source — MIT licensed; read every line at github.com/reacher-z/gpu-monitor

Troubleshooting

GPU not detected / nvidia-smi not found

  • Install NVIDIA drivers and verify: nvidia-smi
  • On Kubernetes, ensure the node has nvidia.com/gpu: "true" label

Webhook not receiving alerts

  • Test your webhook directly: curl -X POST "$SLACK_WEBHOOK_URL" -d '{"text":"test"}'
  • Run gpu-monitor --test-notify to verify all configured channels
  • Check gpu-monitor --channels to confirm env vars are detected

Systemd service not starting

  • Check logs: journalctl -u gpu-monitor@$USER -n 50
  • Verify the Environment= lines in your .service file have real values (not placeholders)

Kubernetes pods not scheduling

  • Check pod status: kubectl describe pod -n gpu-monitor -l app=gpu-monitor
  • Verify the gpu-monitor-secrets Secret exists: kubectl get secrets -n gpu-monitor
  • Ensure GPU nodes have the nvidia.com/gpu: "true" label

Citing gpu-monitor

If you use gpu-monitor in your research or infrastructure work, please cite it:

@software{gpu_monitor,
  author = {Zhang, Yuxuan},
  title  = {gpu-monitor: Lightweight NVIDIA GPU Monitor with Multi-Channel Alerting},
  year   = {2026},
  url    = {https://github.com/reacher-z/gpu-monitor},
}

A CITATION.cff file is included in the repository for Zotero, Mendeley, and GitHub's built-in "Cite this repository" button.


Author

Yuxuan Zhang (reacher-z) — ML researcher working on agentic AI and LLM systems. Builds open-source tools for ML infrastructure.

Homepage · Google Scholar · Twitter/X · GitHub

If this tool saved your GPU-hours or helped you catch a crash before it ruined a training run, feedback and contributions are always welcome.

Bugs, feature requests, and channel integrations: open an issue or submit a PR. Contributions are welcome.

Star gpu-monitor — every star helps more ML engineers find it.

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

gpuwatch-1.0.0.tar.gz (54.6 kB view details)

Uploaded Source

Built Distribution

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

gpuwatch-1.0.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file gpuwatch-1.0.0.tar.gz.

File metadata

  • Download URL: gpuwatch-1.0.0.tar.gz
  • Upload date:
  • Size: 54.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gpuwatch-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8c7cd7be9e91ae39335b97645ec337863d6f3dd3b299df79033979df64fa141a
MD5 236b6d9fe6591367d4e34d7942a440aa
BLAKE2b-256 04a8109b31a7ca8d1e379454a623d69070d05584169e698c98b3694023615e07

See more details on using hashes here.

File details

Details for the file gpuwatch-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gpuwatch-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gpuwatch-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a8f7213fc92dd238a327e3e18cf5eb5f81475e8017cd0f854d3beabc1ded7d
MD5 77f5da59d08120a4ea61f9a5c483cd91
BLAKE2b-256 d2f23871542292c06b978e0d880f730a840315c2a0290ffbbe2cec6982d04f6a

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