From aab70de52711f02cfaa1b0b6a485a82a7b4b84d7 Mon Sep 17 00:00:00 2001 From: Anthony Subia Date: Mon, 13 Oct 2025 15:33:03 +0000 Subject: [PATCH 1/4] Add section for exporter flags --- .../monitoring/prometheus/redis_exporter.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/doc/administration/monitoring/prometheus/redis_exporter.md b/doc/administration/monitoring/prometheus/redis_exporter.md index 706b53b37e9f66..575abc8d9d1ec5 100644 --- a/doc/administration/monitoring/prometheus/redis_exporter.md +++ b/doc/administration/monitoring/prometheus/redis_exporter.md @@ -33,3 +33,25 @@ To enable the Redis exporter: Prometheus begins collecting performance data from the Redis exporter exposed at `localhost:9121`. + +## Configuring Redis Exporter Flags + +You can configure redis_exporter using the `redis_exporter['flags']` setting to pass [command-line flags](https://github.com/oliver006/redis_exporter/blob/master/README.md#command-line-flags). This allows you to customize the exporter's behavior according to your monitoring requirements. + +{{< alert type="note" >}} + +`redis.addr` is not usable as that value is configured by `gitlab_rails[redis_*]` values such as ;gitlab_rails[redis_host]`. + +{{< /alert >}} + +### Common Configuration Flags + +Use the `redis_exporter['flags']` hash to set any of the supported command-line flags: + +```yaml +redis_exporter['flags'] = { + 'redis.password' => 'your-redis-password', + 'namespace' => 'redis', + 'web.listen-address' => ':9121', + 'web.telemetry-path' => '/metrics' +} \ No newline at end of file -- GitLab From becb8f799109c355dd935df829f5512932726425 Mon Sep 17 00:00:00 2001 From: Anthony Subia Date: Mon, 13 Oct 2025 15:48:41 +0000 Subject: [PATCH 2/4] Fixed caps --- doc/administration/monitoring/prometheus/redis_exporter.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/administration/monitoring/prometheus/redis_exporter.md b/doc/administration/monitoring/prometheus/redis_exporter.md index 575abc8d9d1ec5..dcc6ff8c5c242a 100644 --- a/doc/administration/monitoring/prometheus/redis_exporter.md +++ b/doc/administration/monitoring/prometheus/redis_exporter.md @@ -36,11 +36,11 @@ the Redis exporter exposed at `localhost:9121`. ## Configuring Redis Exporter Flags -You can configure redis_exporter using the `redis_exporter['flags']` setting to pass [command-line flags](https://github.com/oliver006/redis_exporter/blob/master/README.md#command-line-flags). This allows you to customize the exporter's behavior according to your monitoring requirements. +You can configure Redis exporter using the `redis_exporter['flags']` setting to pass [command-line flags](https://github.com/oliver006/redis_exporter/blob/master/README.md#command-line-flags). This allows you to customize the exporter's behavior according to your monitoring requirements. {{< alert type="note" >}} -`redis.addr` is not usable as that value is configured by `gitlab_rails[redis_*]` values such as ;gitlab_rails[redis_host]`. +`redis.addr` is not usable as that value is configured by `gitlab_rails[redis_*]` values such as `gitlab_rails[redis_host]`. {{< /alert >}} @@ -54,4 +54,4 @@ redis_exporter['flags'] = { 'namespace' => 'redis', 'web.listen-address' => ':9121', 'web.telemetry-path' => '/metrics' -} \ No newline at end of file +} -- GitLab From d84c4a2154832351bc7a5b3abe34512081a85586 Mon Sep 17 00:00:00 2001 From: Anthony Subia Date: Mon, 13 Oct 2025 19:33:38 +0000 Subject: [PATCH 3/4] Fixed wording --- doc/administration/monitoring/prometheus/redis_exporter.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/administration/monitoring/prometheus/redis_exporter.md b/doc/administration/monitoring/prometheus/redis_exporter.md index dcc6ff8c5c242a..531ee85d6d079f 100644 --- a/doc/administration/monitoring/prometheus/redis_exporter.md +++ b/doc/administration/monitoring/prometheus/redis_exporter.md @@ -34,9 +34,11 @@ To enable the Redis exporter: Prometheus begins collecting performance data from the Redis exporter exposed at `localhost:9121`. -## Configuring Redis Exporter Flags +## Configure the Redis exporter flags -You can configure Redis exporter using the `redis_exporter['flags']` setting to pass [command-line flags](https://github.com/oliver006/redis_exporter/blob/master/README.md#command-line-flags). This allows you to customize the exporter's behavior according to your monitoring requirements. +You can use the `redis_exporter['flags']` setting to pass +[command-line flags](https://github.com/oliver006/redis_exporter/blob/master/README.md#command-line-flags) +and customize the Redis exporter's behavior according to your monitoring requirements. {{< alert type="note" >}} -- GitLab From cb472f226afd50536f42e26206e95b558ccf6ab9 Mon Sep 17 00:00:00 2001 From: Anthony Subia Date: Mon, 13 Oct 2025 19:34:40 +0000 Subject: [PATCH 4/4] Dropping header --- .../monitoring/prometheus/redis_exporter.md | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/doc/administration/monitoring/prometheus/redis_exporter.md b/doc/administration/monitoring/prometheus/redis_exporter.md index 531ee85d6d079f..e63c054ab6524f 100644 --- a/doc/administration/monitoring/prometheus/redis_exporter.md +++ b/doc/administration/monitoring/prometheus/redis_exporter.md @@ -46,14 +46,21 @@ and customize the Redis exporter's behavior according to your monitoring require {{< /alert >}} -### Common Configuration Flags +To configure the Redis exporter flags: -Use the `redis_exporter['flags']` hash to set any of the supported command-line flags: +1. Edit `/etc/gitlab/gitlab.rb`, and add some flags, for example: -```yaml -redis_exporter['flags'] = { - 'redis.password' => 'your-redis-password', - 'namespace' => 'redis', - 'web.listen-address' => ':9121', - 'web.telemetry-path' => '/metrics' -} + ```ruby + redis_exporter['flags'] = { + 'redis.password' => 'your-redis-password', + 'namespace' => 'redis', + 'web.listen-address' => ':9121', + 'web.telemetry-path' => '/metrics' + } + ``` + +1. Reconfigure GitLab: + + ```shell + sudo gitlab-ctl reconfigure + ``` -- GitLab