Skip to content

An app that pulses system information periodically.

License

Notifications You must be signed in to change notification settings

FNNDSC/pl-heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pl-heartbeat

https://travis-ci.org/FNNDSC/heartbeat.svg?branch=master

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

About

An app that pulses system information periodically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published