Hi ,
I am trying to use metricbeat (version 8.1.2) module for Redis.
Redis cluster is managed app.redislabs.com
Also tried with Redis service for the Google Cloud Platform.
Here is config:
metricsets: ["info", "keyspace"]
hosts: ["redis-16058.internal.xxxxxxxxx.ec2.cloud.redislabs.com:16058"]
password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
enabled: true
period: 10s
xpack.enabled: true
Redis hosts
hosts: ["redis-16058.xxxxxxxxx.ec2.cloud.redislabs.com:16058"]
Redis AUTH password. Empty by default.
password: (blank if no auth. Tried with password as well as without)
I am getting below errors:
{"log.level":"error","@timestamp":"2022-04-20T12:33:49.090Z","log.origin":{"file.name":"module/wrapper.go","file.line":254},"message":"Error fetching data for metricset redis.keyspace: Failed to fetch redis info for keyspaces: dial tcp 10.69.19.83:6379: i/o timeout","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-20T12:33:51.488Z","log.origin":{"file.name":"redis/redis.go","file.line":70},"message":"Error retrieving INFO stats: dial tcp 10.69.19.83:6379: i/o timeout","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-20T12:33:51.488Z","log.origin":{"file.name":"module/wrapper.go","file.line":254},"message":"Error fetching data for metricset redis.info: failed to fetch redis info: dial tcp 10.69.19.83:6379: i/o timeout","service.name":"metricbeat","ecs.version":"1.6.0"}
However I can connect via redis-cli to the host. Ping returns Pong.
Also If i try to connect to my local redis running on localhost I am able to see the metrics.
Using hosts: ["127.0.0.1:6379"]
Any suggestion on what could be the reason?
Thanks!