Python library for accessing telemd monitoring data
Project description
telemc-py
Library and client tools for accessing and recording telemd monitoring data.
CLI
run make install and source .venv/bin/activate install locally.
% telemc --help
usage: telemc [-h] [--redis-host REDIS_HOST] [--redis-port REDIS_PORT]
{list,info,pause,unpause,follow} ...
positional arguments:
{list,info,pause,unpause,follow}
telemc command
list list nodes
info show node info
pause pause telemetry reporting
unpause start telemetry reporting
follow subscribe to the telemetry data
optional arguments:
-h, --help show this help message and exit
--redis-host REDIS_HOST
redis host
--redis-port REDIS_PORT
redis port
Library
Usage examples
Print telemetry:
import redis
import telemc
rds = redis.Redis(decode_responses=True)
with telemc.TelemetrySubscriber(rds) as sub:
for telem in sub:
print(telem.timestamp, telem.node, ...)
Or use the higher-level TelemetryRecorder, which is a thread and can be extended to implement various recording
tools.
import telemc
recorder = telemc.recorder.TelemetryPrinter(rds)
recorder.start()
Pause all telemetry daemons
ctrl = telemc.TelemetryController(rds)
ctrl.pause_all()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file telemck-0.3.3.tar.gz.
File metadata
- Download URL: telemck-0.3.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
696a417c66a094870cc9c626ab184c3c816daf9f9309d45a43d916d1cbc013fb
|
|
| MD5 |
d3a1620afdcc93003e9af72c4b05b1ea
|
|
| BLAKE2b-256 |
1bfd3dfb0f169225c468247ab6a551272cbc224cfe2062ed69bd13f3038e9933
|
File details
Details for the file telemck-0.3.3-py2-none-any.whl.
File metadata
- Download URL: telemck-0.3.3-py2-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22b87b51cc9a3ea57f1587a475f1b71382c72330a1a369d0ee93be149e841e00
|
|
| MD5 |
5b96d0589eb275d93f1973b8ec5ae761
|
|
| BLAKE2b-256 |
7fb7f438d7392510aa78c506a6505c649f691bfa9cf9b450c2fc1fed56d3d065
|