Download PDF
Download page Configure Redis.
Configure Redis
This page explains how to use add the Redis®* Prometheus exporter within your deployed environment using Helm Charts. The AppDynamics Helm chart package provides all the necessary dependencies. If you don’t have the AppDynamics Helm chart installed, see Install Kubernetes and App Service Monitoring Using Helm Charts.
Requirements
Before you integrate Prometheus, you must have configured Redis exporters in your environment. See Prometheus Exporters and integrations.
Scaling Requirements
If you are only running Redis exporters in the Kubernetes cluster, each AppDynamics Distribution for OpenTelemetry™ Collector replica can process 20 Redis instances. This limit ensures that you have enough storage for AppDynamics metrics, events, logs, and traces (MELT) data. To process additional instances, add 1 AppDynamics Distribution for OpenTelemetry™ Collector replica for every 20 Redis instances. For example, a 16-node Kubernetes cluster with 16 AppDynamics Distribution for OpenTelemetry™ Collector replicas can handle a total of 320 Redis instances.
If you are running Redis and Kafka exporters in the same Kubernetes cluster, each AppDynamics Distribution for OpenTelemetry™ Collector replica can process 5 Redis instances. This limit ensures that you have enough storage for Kafka metrics and AppDynamics metrics, events, logs, and traces (MELT) data. To process additional instances, add 1 AppDynamics Distribution for OpenTelemetry™ Collector replica for every 5 Redis instances. For example, a 16-node Kubernetes cluster with 16 AppDynamics Distribution for OpenTelemetry™ Collector replicas can handle a total of 80 Redis instances.
This document contains references to third-party documentation. AppDynamics does not own any rights and assumes no responsibility for the accuracy or completeness of such third-party documentation.
Enable Prometheus Exporter Monitoring for Redis
To enable the Prometheus exporter monitoring for Redis using the AppDynamics Helm chart you'll need to annotate the collectors-values.yaml
file:
Copy and paste the following snippet into the
collectors-values.yaml
file in your Kubernetes deployment. For the full list of settings, see AppDynamics Distribution for OpenTelemetry Collector Settings.appdynamics-otel-collector: enablePrometheus: true spec: replicas: <your-desired-number-of-replicas-here>
CODESet the
replicas
value to the number of Kubernetes nodes in your Kubernetes cluster.If you are only running Redis exporters in the Kubernetes cluster, each AppDynamics Distribution for OpenTelemetry™ Collector replica can process 20 Redis instances. This limit ensures that you have enough storage for AppDynamics metrics, events, logs, and traces (MELT) data. To process additional instances, add 1 AppDynamics Distribution for OpenTelemetry™ Collector replica for every 20 Redis instances. For example, a 16-node Kubernetes cluster with 16 AppDynamics Distribution for OpenTelemetry™ Collector replicas can handle a total of 320 Redis instances.
If you are running Redis and Kafka exporters in the same Kubernetes cluster, each AppDynamics Distribution for OpenTelemetry™ Collector replica can process 5 Redis instances. This limit ensures that you have enough storage for Kafka metrics and AppDynamics metrics, events, logs, and traces (MELT) data. To process additional instances, add 1 AppDynamics Distribution for OpenTelemetry™ Collector replica for every 5 Redis instances. For example, a 16-node Kubernetes cluster with 16 AppDynamics Distribution for OpenTelemetry™ Collector replicas can handle a total of 80 Redis instances.
replicas
must be set to enable the AppDynamics deployment or the AppDynamics Distribution for OpenTelemetry™ Collector will not run.Run the Helm chart commands using the latest version to Upgrade Operators and Collectors. Once configured, to validate the installation run this command:
kubectl get po -n appdynamics
YMLSample output:
NAMESPACE NAME READY STATUS RESTARTS AGE appdynamics appd-prom-appdynamics-otel-collector-collector-0 1/1 Running 0 115s appdynamics appd-prom-appdynamics-otel-collector-collector-1 1/1 Running 0 114s appdynamics appd-prom-appdynamics-otel-collector-targetallocator-676bfkxxxv 1/1 Running 0 115s appdynamics opentelemetry-operator-controller-manager-58d65d7848-z5t5n 2/2 Running 0 7h19m
YMLKubernetes annotations are designed to attach metadata to objects. Annotations are key/value pairs that clients can use to retrieve this metadata. Use Kubernetes annotations to configure your Prometheus exporters on the Kubernetes services that expose the Prometheus exporter endpoints.
Redis exporter:
appdynamics.com/exporter_type: "redis" prometheus.io/path: "/metrics" prometheus.io/port: "9121"
CODEIf you start the Prometheus exporter with a
path
orport
that is different from the default values, you need to update theprometheus.io/path
andprometheus.io/port
annotation values accordingly.Once configured, to validate run:
kubectl describe svc [Redis exporter service name] [-n namespace]
YMLSample output:
Name: redis-demo-metrics Namespace: redis Annotations: appdynamics.com/exporter_type: redis prometheus.io/path: /metrics prometheus.io/port: 9121
YML
Next Steps
You can observe entity details on AppDynamics Cloud UI. See Observe Redis Entities.
* Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by AppDynamics and its affiliates (together, "AppDynamics") is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and AppDynamics.
Prometheus® and Kubernetes® (as applicable) are trademarks of The Linux Foundation®.