doc/administration/monitoring/prometheus/redis_exporter.md
{{< details >}}
{{< /details >}}
The Redis exporter enables you to measure various Redis metrics. For more information on what is exported, read the upstream documentation.
For self-compiled installations, you must install and configure it yourself.
To enable the Redis exporter:
Edit /etc/gitlab/gitlab.rb.
Add (or find and uncomment) the following line, making sure it's set to true:
redis_exporter['enable'] = true
Save the file and reconfigure GitLab for the changes to take effect.
Prometheus begins collecting performance data from
the Redis exporter exposed at localhost:9121.
You can use the redis_exporter['flags'] setting to pass
command-line flags
and customize the Redis exporter's behavior according to your monitoring requirements.
[!note]
redis.addris not usable as that value is configured bygitlab_rails[redis_*]values such asgitlab_rails[redis_host].
To configure the Redis exporter flags:
Edit /etc/gitlab/gitlab.rb, and add some flags, for example:
redis_exporter['flags'] = {
'redis.password' => 'your-redis-password',
'namespace' => 'redis',
'web.listen-address' => ':9121',
'web.telemetry-path' => '/metrics'
}
Reconfigure GitLab:
sudo gitlab-ctl reconfigure