Redis exporter
- Tier: Free, Premium, Ultimate
- Offering: GitLab Self-Managed
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
.
Configure the Redis exporter flags
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.
redis.addr
is not usable as that value is configured by gitlab_rails[redis_*]
values such as gitlab_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