Monitoring Redis
Metrics
The metrics available from metrics can be found on the source of the plugin. You can enable/disable metrics by commenting them (prepend with #
) out of the file.
Dependencies
- redis pypi
If you're running python3 you can run pip3 install redis
, if you're running the older python2 nixstatsagent you can run pip install redis
.
You can find out the version by running nixstatsagent info
-- the plugin dir will have the python version for example: /usr/local/lib/ python3.6 /
Configure the plugin
To enable the plugin edit the nixstats configuration file. This file is usually located at /etc/nixstats.ini
.
Add the following settings to the end of the file.
``
[redis_stat]
enabled=yes
host=nixstats
port=123
db=dbname
password=safeandsecurepassword
``
Test to see if the plugin is working by running nixstatsagent test redis_stat
. It should return json data for the plugin.
``
redis_stat:
{
"uptime_in_seconds": 59949.0,
...
}
``
Now you can restart the agent service nixstatsagent restart
to start monitoring Redis.
Updated on: 05/06/2020
Thank you!