Skip to main content

Monitor a Redis key

Project description

Monitor a Redis key

Installation

Redmon requires a working Redis connection.

To install Redmon from pip,

pip install redmon

Or from source,

python setup.py install

Setup

Redmon connects to your Redis connection with the following environment variables. If none are set, default values are used. - REDMON_REDIS_HOST (default, localhost) : Set it to where your Redis is running from. - REDMON_REDIS_PORT (default, 6379) : Set it to where your Redis is running on. - REDMON_TIME_INT (default, 1.0) : Set refresh interval for your Redis key

Get Started

To watch a Redis key, just simply

redmon monitor --key=sample

Redmon now watches a key called sample every second.

Setting Refresh Intervals

Changing the refresh interval for your monitor is very simple. You can either set it with an environment variable or by passing it as an argument.

REDMON_TIME_INT=2 redmon monitor --key=sample
redmon monitor --key=sample --interval=2

Redmon now watches a key called sample every two seconds.

Intervals passed as arguments take precedence.

REDMON_TIME_INT=2 redmon monitor --key=sample --interval=3

Redmon now watches a key called sample every three seconds.

Running Tests

Redmon uses pytest to write/run test cases. To run the test cases,

cd tests
py.test

Contributing

  1. Fork this repo

  2. [Clone] (https://help.github.com/articles/cloning-a-repository/) your newly forked repo

  3. Write relevant test cases

  4. Raise pull requests to swaathi/redmon

Coming Up

  • Monitor multiple keys

  • Set the values your Redis key should be compared against

  • Set the values your Redis key should never be

Project details


Download files

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

Source Distribution

redmon-0.1.2.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file redmon-0.1.2.tar.gz.

File metadata

  • Download URL: redmon-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for redmon-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d742cf265c320ecd1f0cc086c9d14cb32d4a13fdde03521cfa22b70e7e9a507a
MD5 e8709f6fc400659eb98fcc9442b96945
BLAKE2b-256 6c657c342bca187b4bec3c3c71c08b63879cf342b90e161f93179b4959f4bb22

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page