Windows Redis Monitoring
Last updated
Last updated
To monitor a Redis server running on a Windows machine, you can use a combination of Windows Exporter and Prometheus to send metrics to Apica Ascent.
This script will help you setup Redis Exporter as a service on a 64-bit Windows Machine and it requires two arguments:
PROMETHEUS_CONFIG_PATH: the path to the Prometheus configuration file.
NSSM_PATH: the path of nssm.exe
Before running the PowerShell script, make sure you have NSSM
and Prometheus
installed.
To run the PowerShell script, open an administrator PowerShell and run the following command:
Make sure that the script finishes running successfully and the NSSM was able to start the service successfully in the end. If not, then please check the indentation in the
prometheus.yml
file.
After you are done running the script, we have to add a code block in the prometheus.yml file, and we have to restart the prometheus service using NSSM.
This code block will rename all the outgoing redis_...
metrics to cli_redis_...
.
After adding this script your remote_write section must look like this.
NOTE: Please edit the <LOGIQ_ENDPOINT> and <HOSTNAME>.
NOTE: Please make sure that replace
redis_(.*)
code block is placed before the(.*)
regex code block.
Make sure that the script finishes running successfully and the NSSM was able to start the service successfully in the end. If not, then please check the indentation in the prometheus.yml
file.
To restart the prometheus service, navigate to the directory where nssm.exe
file is located.
Restart the prometheus service using these 2 commands: