Redis Receiver
contrib
Maintainers: @dmitryax, @hughesjj
Source: opentelemetry-collector-contrib
Supported Telemetry
Overview
Details
The Redis INFO command returns information and statistics about a Redis server (see https://redis.io/commands/info for details). The Redis receiver extracts values from the result and converts them to open telemetry metrics. Details about the metrics produced by the Redis receiver can be found by browsing metric_functions.go. For a complete list of all emitted metrics with descriptions, types, and units, see the automatically generated documentation (generated bymake generate).
For example, one of the fields returned by the Redis INFO command is
used_cpu_sys which indicates the system CPU consumed by the Redis server,
expressed in seconds, since the start of the Redis instance.
The Redis receiver turns this data into a gauge…
redis.cpu.time and a units value of s (seconds).
Configuration
The following settings are required:endpoint(no default): The hostname and port of the Redis instance, separated by a colon.
collection_interval(default =10s): This receiver runs on an interval. Each time it runs, it queries Redis, creates metrics, and sends them to the next consumer. Thecollection_intervalconfiguration option tells this receiver the duration between runs. This value must be a string readable by Golang’sParseDurationfunction (example:1h30m). Valid time units arens,us(orµs),ms,s,m,h.username(no default): Client username used to connect to a Redis >=6.0 instance that is using the Redis ACL system.password(no default): The password used to access the Redis instance; must match the password specified in therequirepassserver configuration option in Redis <6.0. For Redis >=6.0, the user’s password when connecting using the Redis ACL system.transport(default =tcp) Defines the network to use for connecting to the server. Valid Values aretcporUnixtls:insecure(default = true): whether to disable client transport security for the exporter’s connection.ca_file: path to the CA cert. For a client this verifies the server certificate. Should only be used ifinsecureis set to false.cert_file: path to the TLS cert to use for TLS required connections. Should only be used ifinsecureis set to false.key_file: path to the TLS key to use for TLS required connections. Should only be used ifinsecureis set to false.
:information_source: As with all Open Telemetry configuration values, a
reference to an environment variable is supported. For example, to pick up
the value of an environment variable REDIS_PASSWORD, you could use a
configuration like the following:
Metrics
Attributes
Resource Attributes
Configuration
Example Configuration
Last generated: 2026-08-24