# dockermon - Docker Monitor Utility
dockermon listens for events from docker daemon using the docker /events [HTTP API][api].
[api]: https://docs.docker.com/reference/api/docker_remote_api_v1.19/
# Usage
## Library You can use dockermon as a library and then call watch(callback), you’re callback function will be called with new event (dict).
# Command Line The other option is to use dockermon as a command line tool and specify a program to call with every new event. The program will be launched and the event encode in JSON will be send to the program standard input. For example:
python -m dockermon “jq –unbuffered .”
If not program is specified, events will be printed to standard output as JSON objects, one per line.
# Hacking “one script no external dependencies” is a design goal, let’s not break it :)
We use [tox](https://tox.readthedocs.org/en/latest/) to test. Please make sure your code passes on all supported platforms (see tox.ini) before sending a pull request.
# Bugs and Project
Metadata
Release files for dockermon 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dockermon-0.2.2.tar.gz | 4.8 kB | Details |
Release files / dockermon-0.2.2.tar.gz
| Download URL | dockermon-0.2.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaaab2b1bae720f5925d590fd07326556926966fb5febdfafa009acb9f126eb8
|
|
BLAKE2b-256 checksum How to use checksums |
36fd0d677cb7f8e2c6e98dfd45203623601f26bb81fea2c3d1f03e0356521097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |