Skip to main content

monitoring and alerting program for data streams such as recording files that update regularly

Project description

stream_monitor

This program monitors a specified set of data streams (files) for changes. If a file is not changed in a specified time, an alert is sent using scalar.

setup

pip install stream_monitor

Set up scalar, as described here.

configuration and usage

A JSON configuration file (by default stream_monitor_configuration.json) guides the program on the streams to monitor and their required update times. Its contents are of the following form:

{
    "streams": {
        "./recording.csv": {"update_time"}: 30
    }
}

In this example configuration, recording.csv is a filepath to monitor for changes and 30 is the time in seconds within which the filepath should change.

When the program stream_monitor is executed, it imports the configuration and runs in a continuous loop, sending an alert whenever it detects that a stream is not being updated in its expected update time. The script has options for the configuration filepath, alarms, checking interval and verbosity (see stream_monitor --help).

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 stream_monitor, version 2018.8.26.1543
Filename, size File type Python version Upload date Hashes
Filename, size stream_monitor-2018.8.26.1543.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page