Skip to main content
Build Status Coverage Status PyPI Downloads Latest PyPI version License

ZMON’s Python worker is doing the heavy lifting of executing tasks against entities, and evaluating all alerts assigned to check. Tasks are picked up from Redis and the resulting check values plus alert state changes are written back to Redis.

Local Development

Start Redis on localhost:6379:

$ docker run -p 6379:6379 -it redis

Install the required development libraries:

$ sudo apt-get install build-essential python2.7-dev libpq-dev libldap2-dev libsasl2-dev libsnappy-dev
$ sudo pip2 install -r requirements.txt

Start the ZMON worker process:

$ python2 -m zmon_worker_monitor

You can query the worker monitor via RPC:

$ python2 -m zmon_worker_monitor.rpc_client http://localhost:23500/zmon_rpc list_stats

Running Unit Tests

$ sudo pip2 install -r test_requirements.txt
$ python2 setup.py test

Building the Docker Image

$ docker build -t zmon-worker .
$ docker run -it zmon-worker

Running the Docker image

The Docker image supports many configuration options via environment variables. Configuration options are explained in the ZMON Documentation.

Metadata

Release files for zmon-worker 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zmon-worker 0.1
File Size Uploaded
zmon-worker-0.1.tar.gz 93.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zmon-worker 0.1
File Interpreter ABI Platform
zmon_worker-0.1-py2-none-any.whl Python 2 none any Details

Total release size: 494.6 kB

Release files / zmon-worker-0.1.tar.gz

Download URL zmon-worker-0.1.tar.gz
Size 93.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a7cd95bec4f93aa9cf0aa142ad7337aec019a3d63b30fbbab232d31907e527d4
BLAKE2b-256 checksum
How to use checksums
cfb06c67441494e5499e4bee75ea69f879049661b24d05d0ea8c974e357610e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / zmon_worker-0.1-py2-none-any.whl

Download URL zmon_worker-0.1-py2-none-any.whl
Size 401.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
f819a66039f1168f478d942037fbd46307172465566611d1d364d35de8c8b1cc
BLAKE2b-256 checksum
How to use checksums
a332d7000ea3e614ea77a1a0685c787d5fd9a80fc70bade29fe3baf038d25be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page