Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Fix search_total_indexing_time metric type #958

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,9 @@ func NewRedisExporter(redisURI string, opts Options) (*Exporter, error) {
"long_lock_waits": "long_lock_waits_total",
"current_client_thread": "current_client_thread",

// Redis Modules metrics
// RediSearch module
// Redis Modules metrics, RediSearch module
"search_number_of_indexes": "search_number_of_indexes",
"search_used_memory_indexes": "search_used_memory_indexes_bytes",
"search_total_indexing_time": "search_total_indexing_time_ms",
"search_global_idle": "search_global_idle",
"search_global_total": "search_global_total",
"search_bytes_collected": "search_collected_bytes",
Expand Down Expand Up @@ -349,6 +347,9 @@ func NewRedisExporter(redisURI string, opts Options) (*Exporter, error) {
"cached_keys": "cached_keys_total",
"storage_provider_read_hits": "storage_provider_read_hits",
"storage_provider_read_misses": "storage_provider_read_misses",

// Redis Modules metrics, RediSearch module
"search_total_indexing_time": "search_indexing_time_ms_total",
},
}

Expand Down
2 changes: 1 addition & 1 deletion exporter/modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestModules(t *testing.T) {
"module_info": false,
"search_number_of_indexes": false,
"search_used_memory_indexes_bytes": false,
"search_total_indexing_time_ms": false,
"search_indexing_time_ms_total": false,
"search_global_idle": false,
"search_global_total": false,
"search_collected_bytes": false,
Expand Down
Loading