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 heartbeat
and run with
heartbeat.py --beatInterval 5 --lifetime 50 /tmp
to specify system information to be displayed, simply do
heartbeat.py --infoType CPU \
--beatInterval 5 \
--lifetime 50 \
/tmp
To run using docker
, prefix all calls with
docker run --rm \
fnndsc/pl-heartbeat heartbeat.py
docker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType datetime \
/tmp
docker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType cpu \
/tmp
docker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType memory \
/tmp
docker run --rm \
fnndsc/pl-heartbeat heartbeat.py \
--infoType datetime \
--beatInterval 15 \
--lifetime 60 \
/tmp