-
Notifications
You must be signed in to change notification settings - Fork 886
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
Scrape redis instances with passwords not working #323
Comments
Using the password as part of the redis URI is not supported, you can configure the password to use via the command line by using If you have different passwords for each redis instance then this is not currently possible to use the same redis_exporter for all of them, see #278 for a discussion of the issue |
I want to ask why I am prompted for authentication failure? The password is fine
tips:
why? |
@fsckzy You can only provide one redis instance address as the parameter to the redis_exporter. What happens if you run |
One instance will do. But I want to monitor the cluster. If the instance launches redis-exporter, many commands will not work, such as cluster slot failure. What is the solution? |
If you want to monitor the cluster then you'll need to scrape each of the instances. |
Thank you for your patience. I successfully monitored the Redis cluster. I do n’t know how to upload pictures, so I wo n’t pass them on.
Prometheus can collect data, just curious。 |
Are you using the multi-instance configuration? If yes, did you set the |
I do it like this:
- job_name: 'redis_exporter_targets'
static_configs:
- targets:
- redis://172.18.11.139:7000
- redis://172.18.11.139:7001
- redis://172.18.11.140:7002
- redis://172.18.11.140:7003
- redis://172.18.11.141:7004
- redis://172.18.11.141:7005
metrics_path: /scrape
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 172.18.11.139:9121 Can collect data。 |
Cool. Just pass |
thank you very much |
I use file_sd_configs to monitor multiple redis instances But the connection authentication fails with redis://h:password@ip:port. Prompt for the following error ,The password is correct
redis version
Redis_exporter startup method
details
The text was updated successfully, but these errors were encountered: