From c9ea61fc4d570e79565e59a77fff07c52742f17e Mon Sep 17 00:00:00 2001 From: Nicolai Antiferov Date: Tue, 29 Oct 2024 16:20:54 +0200 Subject: [PATCH] Hotfix: Change type of search_total_cycles/search_total_ms_run metrics Initially added in https://github.com/oliver006/redis_exporter/pull/953 as gauges, but usage shows that they're counters. Related: #942 --- exporter/exporter.go | 4 ++-- exporter/modules_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/exporter.go b/exporter/exporter.go index f0252d4c..7473c8f6 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -299,8 +299,6 @@ func NewRedisExporter(uri string, opts Options) (*Exporter, error) { "search_global_idle": "search_global_idle", "search_global_total": "search_global_total", "search_bytes_collected": "search_collected_bytes", - "search_total_cycles": "search_total_cycles", - "search_total_ms_run": "search_total_run_ms", "search_dialect_1": "search_dialect_1", "search_dialect_2": "search_dialect_2", "search_dialect_3": "search_dialect_3", @@ -359,6 +357,8 @@ func NewRedisExporter(uri string, opts Options) (*Exporter, error) { // Redis Modules metrics, RediSearch module "search_total_indexing_time": "search_indexing_time_ms_total", + "search_total_cycles": "search_cycles_total", + "search_total_ms_run": "search_run_ms_total", }, } diff --git a/exporter/modules_test.go b/exporter/modules_test.go index af3659a4..89900379 100644 --- a/exporter/modules_test.go +++ b/exporter/modules_test.go @@ -41,8 +41,8 @@ func TestModules(t *testing.T) { "search_global_idle": false, "search_global_total": false, "search_collected_bytes": false, - "search_total_cycles": false, - "search_total_run_ms": false, + "search_cycles_total": false, + "search_run_ms_total": false, "search_dialect_1": false, "search_dialect_2": false, "search_dialect_3": false,