zMon
zMon is a monitoring application featuring a React-based frontend (using Vite) and an Express backend, both running on Bun.
Project Structure
frontend/- React frontend application (Vite + TypeScript)backend/- Express backend serverlauncher/-zmon/zmon.batdispatcher script templates, copied into every release byzmon-packagezmon/- Python package replacing the Express backend (see below)zmon-setup- Prepares and runs the Python backendzmon-dev- Runs both servers for local developmentzmon-package- Builds and packages the application for distribution (see below)
Requires Bun to be installed for development and packaging. End users running a packaged release do not need Bun or Node installed — see below.
Python backend (in progress, branch python-wheel)
The Express/Bun backend is being replaced by a pip-installable Python package so zMon can ship inside zCFD, mount into zui's zCFD Dashboard tab, and be installed standalone to monitor jobs on a remote cluster. See docs/packaging-plan.md for the design and what remains.
One command does everything — create the virtualenv, install the package, build the frontend, and launch:
./zmon-setup data/override.py
It works from any directory (/path/to/zMon/zmon-setup mycase.py is fine, and
relative case paths resolve against wherever you ran it), and re-running is
instant because each step is skipped when it's already done. --setup-only
prepares everything without launching.
Bun is not needed to run zMon, and zmon-setup will build the frontend with the
existing frontend/node_modules if bun isn't installed. Bun is still the
frontend build tool when it is available.
Launching serves the API and the built SPA on an unused port chosen by the OS and
opens a browser. Add --no-browser to just print the URL. Useful flags:
--port N— pin the port (for an SSH tunnel). AlsoZMON_PORT.--host— defaults to127.0.0.1; anything else exposes the file browser to other users on the machine.--exit-when-idle— shut down when no browser is connected (the old Bun behaviour). Off by default: it is unsafe behind an SSH tunnel.
Run the tests with:
./.venv/bin/python -m unittest discover -s tests
The API is served under /api/monitor. When mounted in zui, the frontend reads
window.ZMON_CONFIG = { baseUrl, token }; standalone it needs no configuration.
Development Instructions
From the root of the project, install dependencies once:
bun install
Then start both the frontend and backend dev servers together:
./zmon-dev
This runs the backend directly with bun backend/server.js and the Vite dev server via bun run --filter frontend dev. The frontend is accessible at the URL Vite prints (usually http://localhost:5173) and communicates with the backend on its own port.
To run either side individually:
bun backend/server.js # backend only
bun run --filter frontend dev # frontend only
Build and Packaging Instructions
From the root directory of the project, run:
./zmon-package
or
bun run package
or
bun run build
This command will:
- Install dependencies and build the frontend application.
- Create a temporary
releasedirectory structure. - Compile the backend into a standalone Bun executable for every supported platform/architecture (
bun build --compile, one binary per target), embedding all backend dependencies — nonode_modules, no Bun or Node install required to run any of them. - Package everything into seven tarballs in the root directory:
zmon-<version>.tgz— a universal package containing every platform's binary (underbin/) pluszmon/zmon.batlauncher scripts that detect the local OS/architecture and dispatch to the right one. One download works everywhere.zmon-<version>-<platform>.tgz— six single-architecture packages (linux-x64,linux-arm64,darwin-x64,darwin-arm64,windows-x64,windows-arm64), each containing just that platform's binary (namedzmon/zmon.exe, no dispatcher needed) plus the frontend assets. Use these on a download page that lets users pick their platform directly, for a much smaller download than the universal package.
- Clean up the temporary
releasedirectory.
Extracting the universal tarball produces:
zmon-<version>/
zmon - launcher for Linux/macOS: detects OS + architecture and execs the matching binary
zmon.bat - launcher for Windows: detects architecture and execs the matching binary
bin/ - one compiled executable per target
public/ - built frontend static assets
Extracting a single-architecture tarball produces just the binary and assets directly:
zmon-<version>-linux-x64/
zmon - (or zmon.exe on Windows packages)
public/
Either way, end users just run ./zmon <file> (macOS/Linux) or zmon.bat <file> / zmon.exe <file> (Windows) — no runtime installation step.
Note: the backend no longer shells out to tail/grep (they don't exist on Windows) — the /api/log and /api/cycle-times endpoints stream and filter log files in pure JS instead (bounded memory regardless of log file size), so behavior is identical across all platforms.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zmon-1.5.0-py3-none-any.whl.
File metadata
- Download URL: zmon-1.5.0-py3-none-any.whl
- Upload date:
- Size: 525.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0eb1cfd76fa0daa15988d1f3c10d71ffb88f7bbfbf4544d07f0b427c9510eeb
|
|
| MD5 |
f15821dc61f7aaa2de0f57e6fffc806b
|
|
| BLAKE2b-256 |
d370076222c145d87ee029652105f82ba1b230dd1b24cc0ea90c71448aded6d8
|
Provenance
The following attestation bundles were made for zmon-1.5.0-py3-none-any.whl:
Publisher:
pypi.yml on zenotech/zMon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zmon-1.5.0-py3-none-any.whl -
Subject digest:
c0eb1cfd76fa0daa15988d1f3c10d71ffb88f7bbfbf4544d07f0b427c9510eeb - Sigstore transparency entry: 2361410700
- Sigstore integration time:
-
Permalink:
zenotech/zMon@9cd43978ebfa75dfe642d917186c3d2ecdf62061 -
Branch / Tag:
refs/tags/v1.5.0 - Owner: https://github.com/zenotech
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9cd43978ebfa75dfe642d917186c3d2ecdf62061 -
Trigger Event:
push
-
Statement type: