Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation regarding accepted parameters for exporter #928

Open
matiasba opened this issue Jul 30, 2024 · 1 comment
Open

Documentation regarding accepted parameters for exporter #928

matiasba opened this issue Jul 30, 2024 · 1 comment

Comments

@matiasba
Copy link

There seems to be at least 5 target parameters that are not documented properly.

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

The parameters are parsed here

They can be used like this:

scrape_configs:
  - job_name: 'redis_exporter'
    scheme: https
    static_configs:
      - targets:
        - redis://first-redis-host:6379
    metrics_path: /scrape
    params:
      check-keys: ["mt:*,la:*"]
      count-keys: ["mt:*,la:*"]
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: <<REDIS-EXPORTER-HOSTNAME>>:9121

It seems the parameters need to be pass as a single string separated by commas instead of a proper yaml array. If passed as an array only the last value is used.

@oliver006
Copy link
Owner

Correct, check-keys parameters are comma separated and not using yaml.

Probably a good idea to add them to the README, can you open a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants