Monitoring Redis Performance using OpenTelemetry

This tutorial explains how you can use OpenTelemetry and Uptrace to monitor Redis Server and Cluster performance. Besides using Otel Collector to monitor your Redis servers, you can also use OpenTelemetry to instrument your applications with traces, metrics, and logs.

What is OpenTelemetry?

OpenTelemetryopen in new window is an open source and vendor-neutral API for OpenTelemetry tracingopen in new window (including logs and errors) and OpenTelemetry metricsopen in new window.

Otel specifies how to collect and export telemetry data in a vendor agnostic way. With OpenTelemetry, you can instrument your application once and then add or change vendors without changing the instrumentation, for example, many open source tracing toolsopen in new window already support OpenTelemetry.

OpenTelemetry is available for most programming languages and provides interoperability across different languages and environments.

What is OpenTelemetry Collector?

OpenTelemetry Collector is a proxy service between your application and a distributed tracing toolopen in new window. Collector receives telemetry data, transforms the data, and then exports it to tracing tools that can store the data permanently.

Collector can also work as an agent that pulls telemetry data from monitored programs and then exports it to the configured backends.

See OpenTelemetry Collectoropen in new window for details.


Uptrace is an open source APMopen in new window for OpenTelemetry with an intuitive query builder, rich dashboards, automatic alerts, and integrations for most languages and frameworks.

You can get startedopen in new window with Uptrace by downloading a DEB/RPM package or a pre-compiled Go binary.

OpenTelemetry Redis receiver

To start monitoring Redis with Otel Collector, you need to configure Redis receiver in /etc/otel-contrib-collector/config.yaml using Uptrace DSNopen in new window:

    endpoint: localhost:6379
    collection_interval: 10s

    headers: { 'uptrace-dsn': '<FIXME>' }

    detectors: [system]
    timeout: 10s

      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]
      receivers: [otlp, redis]
      processors: [batch, resourcedetection]
      exporters: [otlp]

Don't forget to restart the service:

sudo systemctl restart otelcol-contrib

You can also check OpenTelemetry Collector logs for any errors:

sudo journalctl -u otelcol-contrib -f

Available metrics

When telemetry data reaches Uptrace, it automatically generates a Redis dashboard from a pre-defined template.

Redis metrics


You can also send OpenTelemetry metrics to Prometheus using OpenTelemetry Prometheus exporter.

What's next?

Next, you can learn more about configuring OpenTelemetry Collector and check available receivers.

To start using OpenTelemetry and Uptrace, see Getting started with Uptraceopen in new window.

Last Updated: