Skip to content

Commit e15c7d2

Browse files
authored
correctly pick up client_recent_max_output_buffer, client_recent_max_input_buffer metrics (#334)
1 parent 97389d2 commit e15c7d2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

exporter.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,16 @@ func NewRedisExporter(redisURI string, opts ExporterOptions) (*Exporter, error)
178178
"process_id": "process_id",
179179

180180
// # Clients
181-
"connected_clients": "connected_clients",
181+
"connected_clients": "connected_clients",
182+
"blocked_clients": "blocked_clients",
183+
184+
// redis 2,3,4.x
182185
"client_longest_output_list": "client_longest_output_list",
183186
"client_biggest_input_buf": "client_biggest_input_buf",
184-
"blocked_clients": "blocked_clients",
187+
188+
// the above two metrics were renamed in redis 5.x
189+
"client_recent_max_output_buffer": "client_recent_max_output_buffer_bytes",
190+
"client_recent_max_input_buffer": "client_recent_max_input_buffer_bytes",
185191

186192
// # Memory
187193
"allocator_active": "allocator_active_bytes",

0 commit comments

Comments
 (0)