I've got a 6-node (3 primary, 3 secondary) cluster. I can get stats from individual nodes (e.g. instantaneous_ops_per_second) using INFO, and I can get some information on the cluster config using CLUSTER INFO.
Is there a way to get the stats from INFO, but for the whole cluster? Using the -c switch to connect in cluster mode doesn't seem to change the output, and googling isn't revealing anything that seems to be useful (though I'm getting plenty of tips on things to monitor in general at least...)
I'd prefer not to have to use an external program to combine the stats, though that's an obvious solution - I'm hoping for something that's built in to redis that'll let me look at, for example, the number of commands per second the whole cluster is processing.
This should do it:
redis-cli --cluster call <ip>:<port> INFO
Where <ip>
and <port>
are one of the cluster's nodes.