Closed Udayendu closed 5 months ago
Have a look at the documentation on how to scrape multiple Redis instances with one exporter.
Thanks @oliver006 . After using /usr/bin/redis_exporter -web.listen-address localhost:9997
, I am able to start the exporter and using scrape able to call multiple redis instances.
/usr/local/bin/redis_exporter_1.55.0 -web.listen-address 0.0.0.0:9121 -redis.addr rediss://:pass@0.0.0.0:6379 -redis.addr rediss://:pass@0.0.0.0:6380 -redis.addr rediss://:pass@0.0.0.0:6381 --skip-tls-verification
This is not working for me @Udayendu @oliver006. Can you please help here? I am using 1.55.0.
@NirmalP29 - have a look at the documentation on how to scrape multiple targets with one exporter, there's an entire section in the docs
@NirmalP29, I have around 32 redis processes running on a single cluster node. I am using a custom systemd script with the following entry in it:
/usr/bin/redis_exporter -web.listen-address ":9997" -include-system-metrics=true
Then at the prometheus side, using the redis cluster node ip and port 9997, capturing all the process's usage. My systemd file is looking something like below:
[Unit]
Description=Redis Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=root
Group=root
Type=simple
ExecStart=/usr/bin/redis_exporter -web.listen-address ":9997" -include-system-metrics=true
[Install]
WantedBy=multi-user.target
As per @oliver006 , you should take a look into https://github.com/oliver006/redis_exporter?tab=readme-ov-file#prometheus-configuration-to-scrape-multiple-redis-hosts as well.
Hope this should help you.
Describe the problem If 5 redis processes running with their own ports starting from 7001 to 7005 and when I am passing the multiple redis address entries,
redis_exporter
is only listening to the last entry of the address. Eg:If I am using the above command,
redis_exporter
is only showing the data for process running on 7005 port.What version of redis_exporter are you running?
Running the exporter
Environment
/usr/bin/redis_exporter
path.Expected behavior It should allow the metrics from all the redis ports.
Additional context For a single port, it's working perfectly but not able to handle the multiple ports.