WARNING: Version 6.0 of Metricbeat has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Redis module
editRedis module
editThis module periodically fetches metrics from Redis servers.
Module-specific configuration notes
editThe Redis module has these additional config options:
-
password
- The password to authenticate, by default it’s empty.
-
idle_timeout
-
The duration to remain idle before closing connections. If
the value is zero, then idle connections are not closed. The default value
is 2 times the module period to allow a connection to be reused across
fetches. The
idle_timeout
should be set to less than the server’s connection timeout. -
network
-
The network type to be used for the Redis connection. The default value is
tcp
. -
maxconn
- The maximum number of concurrent connections to Redis. The default value is 10.
Compatibility
editThe Redis metricsets were tested with Redis 3.2.4 and are expected to work with all version >= 3.0.
Example configuration
editThe Redis module supports the standard configuration options that are described in Specify which modules to run. Here is an example configuration:
metricbeat.modules: - module: redis metricsets: ["info", "keyspace"] period: 10s # Redis hosts hosts: ["127.0.0.1:6379"] # Timeout after which time a metricset should return an error # Timeout is by default defined as period, as a fetch of a metricset # should never take longer then period, as otherwise calls can pile up. #timeout: 1s # Optional fields to be added to each event #fields: # datacenter: west # Network type to be used for redis connection. Default: tcp #network: tcp # Max number of concurrent connections. Default: 10 #maxconn: 10 # Filters can be used to reduce the number of fields sent. #processors: # - include_fields: # fields: ["beat", "metricset", "redis.info.stats"] # Redis AUTH password. Empty by default. #password: foobared
Metricsets
editThe following metricsets are available: