Skip to content

Add option to only run check and counts on replicas #931

@jdheyburn

Description

@jdheyburn

Describe the problem

redis-exporter has these arguments available for exporting the length of particular keys:

check-keys
check-single-keys
check-streams
check-single-streams
count-keys

It's described in the docs that these commands may not perform well on large databases, and that it can affect production environments.

My questions:

  1. Would it make sense to have an option that only allows these to execute on replicas?
  2. Can these be enhanced to gather the memory consumed by the keys too via MEMORY USAGE?
  3. Can both these problems be solved by using a custom lua script defined in REDIS_EXPORTER_SCRIPT?

What version of redis_exporter are you running?
Please run redis_exporter --version if you're not sure what version you're running.
[x] 1.6.2

Running the exporter
N/A

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions