simple redis key tracker for stdout and prometheus
Project description
redis-tracker
Cli tool that redirect redis key values to stdout and/or prometheus
$ redis-tracker set zset text --prometheus 9090
sending stats to prometheus: localhost:9090
set 84
zset 19
text hello!
Prometheus
The example above would produce these prometheus stats:
# HELP redis_track redis key value tracking
# TYPE redis_track gauge
redis_track{key="set",source="redis@localhost/0:6379",type="set"} 1.0
redis_track{key="zset",source="redis@localhost/0:6379",type="zset"} 1.0
# HELP redis_track_info redis key value tracking
# TYPE redis_track_info gauge
redis_track_info{key="text",source="redis@localhost/0:6379",text="hello!",type="string"} 1.0
In other words:
sets
produce gauges that track their lengthzsets
same as setsstring
producesinfo
Usage
$ redis-tracker --help
Usage: redis-tracker [OPTIONS] [KEYS]...
track redis keys to stdout and/or prometheus
Options:
--from-set TEXT take keys from set key
--prometheus INTEGER enable prometheus polling on port
--tick-rate INTEGER how often to check in seconds [default: 1]
--no-color disable output color
-h TEXT redis hoststring [default: localhost]
-p INTEGER redis port [default: 6379]
-a TEXT redis password
-db INTEGER redis host [default: 0]
--help Show this message and exit.
Install
pip install redis-tracker
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
redis-tracker-1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for redis_tracker-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea94037b6a0422597f1d423b6dd9d3d84385eda35e64ee0777ce8653de8841d9 |
|
MD5 | abbd2c4ace2547ac6bfaf95bb0384380 |
|
BLAKE2b-256 | 760ffe30f6820a72bd9339915ef17a1def5584811269cee382196ed510f41ef5 |