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:

  1. Enable Prometheus.

  2. Edit /etc/gitlab/gitlab.rb.

  3. Add (or find and uncomment) the following line, making sure it’s set to true:

    redis_exporter['enable'] = true
  4. 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:

  1. 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'
    }
  2. Reconfigure GitLab:

    sudo gitlab-ctl reconfigure