#3983·go-redis

Feature Request: Hope to support custom parameters for MonitorCmd

Author: HeachyCreated Aug 24, 2026Updated Sep 17, 2026

Issue tracker is used for reporting bugs and discussing new features. Please use stackoverflow for supporting issues.

Expected Behavior

It would be desirable to customize the monitor command instead of hard‑coding it as just MONITOR, since different cloud‑providers support different commands.

Current Behavior

func newMonitorCmd(ctx context.Context, ch chan string) *MonitorCmd { return &MonitorCmd{ baseCmd: baseCmd{ ctx: ctx, args: []interface{}{"monitor"}, }, ch: ch, status: monitorStatusIdle, mu: sync.Mutex{}, } } It appears the command args are fixed to MONITOR, with no option to customize the monitor command.

Possible Solution

Expose setter for MonitorCmd args. My target command could be MONITOR followed by a node IP or ID, or an entirely different command. Direct configuration of the full command is required, instead of merely appending extra parameters.

Steps to Reproduce

Context (Environment)

Detailed Description

Possible Implementation