Skip to main content

Python library for accessing telemd monitoring data

Project description

telemc-py

PyPI Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for telemck, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size telemck-0.3.3.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View
Filename, size telemck-0.3.3-py2-none-any.whl (14.9 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page