[redis] dynamic keys list monitoring
Hi,
When monitoring the length of redis keys, the agent requires a hard coded list of keys. It would be awesome if you could instead give the agent a redis-supported pattern that can be used with the keys command, and the agent will fetch the list of keys, and for each of those monitor the length and report it per key.
So for example if I have the following keys:
queue1
queue2
queue3
queue4
I would do something like this in the redisdb.yaml file:
keys_pattern:
- queue*
and it will monitor each of the different queue keys
What other per-key monitoring capabilities are there? Monitoring the length of a key seems like a highly specific use case. How about monitoring the count of keys that match a pattern for example?