Table of Contents
heartbeat is a simple app that periodically displays system information.
python heartbeat.py \
[-v <level>] [--verbosity <level>] \
[--infoType <typeSystemInfo>] \
[--beatInterval <secondsWait>] \
[--lifetime <secondsLive>] \
[--version] \
[--man] \
[--meta] \
/tmp
This plugin can be run in two modes: natively as a python package or as a containerized docker image.
To run from PyPI, simply do a
pip install heartbeatand run with
heartbeat.py --beatInterval 5 --lifetime 50 /tmpto specify system information to be displayed, simply do
heartbeat.py --infoType CPU \
--beatInterval 5 \
--lifetime 50 \
/tmpTo run using docker, prefix all calls with
docker run --rm \
fnndsc/pl-heartbeat heartbeat.pydocker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType datetime \
/tmpdocker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType cpu \
/tmpdocker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType memory \
/tmpdocker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType datetime \
--beatInterval 15 \
--lifetime 60 \
/tmp