-
Notifications
You must be signed in to change notification settings - Fork 384
collectors RedisCollector
Rob Smith edited this page Sep 16, 2014
·
15 revisions
Collects data from one or more Redis Servers
- redis
The collector is named an odd redisstat because of an import issue with having the python library called redis and this collector's module being called redis, so we use an odd name for this collector. This doesn't affect the usage of this collector.
Example config file RedisCollector.conf
enabled=True
host=redis.example.com
port=16379
auth=PASSWORD
or for multi-instance mode:
enabled=True
instances = nick1@host1:port1, nick2@host2:port2/PASSWORD, ...
Note: when using the host/port config mode, the port number is used in the metric key. When using the multi-instance mode, the nick will be used. If not specified the port will be used.
Options - Generic Options
Setting | Default | Description | Type |
---|---|---|---|
auth | None | Password? | NoneType |
byte_unit | byte | Default numeric output(s) | str |
databases | 16 | how many database instances to collect | int |
db | 0 | int | |
enabled | False | Enable collecting these metrics | bool |
host | localhost | Hostname to collect from | str |
instances | , | Redis addresses, comma separated, syntax: nick1@host:port, nick2@:port or nick3@host | list |
measure_collector_time | False | Collect the collector run time in ms | bool |
metrics_blacklist | None | Regex to match metrics to block. Mutually exclusive with metrics_whitelist | NoneType |
metrics_whitelist | None | Regex to match metrics to transmit. Mutually exclusive with metrics_blacklist | NoneType |
port | 6379 | Port number to collect from | int |
timeout | 5 | Socket timeout | int |
__EXAMPLESHERE__