Skip to content

Commit

Permalink
Add _bytes suffix to search_used_memory_indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
nantiferov committed Sep 19, 2024
1 parent d271734 commit d97d711
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func NewRedisExporter(redisURI string, opts Options) (*Exporter, error) {
// Redis Modules metrics
// RediSearch module
"search_number_of_indexes": "search_number_of_indexes",
"search_used_memory_indexes": "search_used_memory_indexes",
"search_used_memory_indexes": "search_used_memory_indexes_bytes",
"search_total_indexing_time": "search_total_indexing_time",
"search_global_idle": "search_global_idle",
"search_global_total": "search_global_total",
Expand Down
28 changes: 14 additions & 14 deletions exporter/modules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ func TestModules(t *testing.T) {
}()

wantedMetrics := map[string]bool{
"module_info": false,
"search_version": false,
"search_number_of_indexes": false,
"search_used_memory_indexes": false,
"search_total_indexing_time": false,
"search_global_idle": false,
"search_global_total": false,
"search_bytes_collected": false,
"search_total_cycles": false,
"search_total_ms_run": false,
"search_dialect_1": false,
"search_dialect_2": false,
"search_dialect_3": false,
"search_dialect_4": false,
"module_info": false,
"search_version": false,
"search_number_of_indexes": false,
"search_used_memory_indexes_bytes": false,
"search_total_indexing_time": false,
"search_global_idle": false,
"search_global_total": false,
"search_bytes_collected": false,
"search_total_cycles": false,
"search_total_ms_run": false,
"search_dialect_1": false,
"search_dialect_2": false,
"search_dialect_3": false,
"search_dialect_4": false,
}

for m := range chM {
Expand Down

0 comments on commit d97d711

Please sign in to comment.