Redis and Valkey monitoring with Prometheus redis_exporter: what it does and how it connects
If your team runs Redis or Valkey as a cache or queue and needs memory, eviction and replication visibility in Prometheus, the redis_exporter is the usual bridge: it connects to the server over the Redis protocol, converts server state into metrics, and exposes them over HTTP for Prometheus to scrape. It supports Valkey 7.x, 8.x and 9.x as well as Redis, so one exporter pattern covers either engine. Confirm the exact exporter release against the server versions you run before you commit, because support lists change between releases.
The exporter is a third-party project. The Prometheus exporters page lists the Redis exporter among externally contributed exporters, not official ones, and the code is maintained in the redis_exporter repository outside the Prometheus organization. That changes who you rely on for fixes and security patches, so ask who maintains the version you deploy, how quickly issues are triaged, and whether your security team has reviewed the binary or container image you pull. Pin the version and track its releases the same way you track the database itself.
In the typical layout, the exporter runs as a separate process near the cache, often one exporter per Redis or Valkey instance. Prometheus scrapes the exporter, not the database, and passes the target address as a parameter, so a single exporter can serve many instances. Credentials for the Redis connection, such as a password or ACL user, belong in the exporter's configuration and secret store, not in the scrape configuration committed to version control. The exporter reads server state with read-only commands, so plan a dedicated monitoring user with the narrowest permissions that still return the INFO and memory data you need, and test that the exporter still works after any ACL change.
What you need before installing redis_exporter
Most redis_exporter problems trace back to a missing prerequisite rather than the exporter itself. The cards below cover the server versions the exporter targets, the account it logs in with, the network path it needs, the Prometheus side that scrapes it, and TLS. Work through them in order before you pin a release.
Supported Redis and Valkey versions
The exporter works with Valkey 7.x, 8.x and 9.x and with Redis. Your server version decides which exporter release you should pin, so record the exact version of every instance before you choose one. Valkey 9.1 is the current stable line at the time of writing, while Redis 7.4 and later use a different license than Redis 7.2 and earlier, which matters for procurement. Confirm the exporter release that supports your version in the repository's release notes.
Exporter repositoryRead-capable monitoring account
Create a dedicated account for the exporter with read-only commands for the INFO and CONFIG output it collects, and avoid reusing an application or administrator login. Restrict key-level access where your version and ACL setup allow it, and confirm the exact command permissions in the exporter documentation for your release. Keep the password in a secret store rather than in a unit file, because the exporter reads it at startup.
Network path to each instance
The exporter must reach every Redis or Valkey port it monitors, usually 6379 unless you changed it, and the host it runs on needs a route to each node in a cluster or replica set. Check firewall rules, security groups and any network policy between the exporter host and the database hosts. Test the connection from the exporter host with the same account you plan to use, not from your workstation.
Running Prometheus with a scrape path
Prometheus must be running and able to reach the exporter's HTTP port, which the exporter serves on its own listener separate from the database port. Decide whether Prometheus scrapes the exporter directly or through a service discovery source, and confirm that the scrape interval and timeout suit your environment. Check the Prometheus configuration for a job name you can use in later alert rules, since the job label will appear on every series.
TLS settings for encrypted instances
If your Redis or Valkey instances accept TLS connections, the exporter needs the CA certificate and, where mutual TLS is required, a client certificate and key that it can read. Verify that the server certificate names match the host you configure, because a name mismatch fails in ways that look like a network fault. Keep certificate files readable only by the exporter's service user, and plan a renewal date so monitoring does not stop when a certificate expires.
Pinning the exporter release
Pick one exporter release and record it with the server versions it was tested against, rather than running the latest build by default. Read the release notes for any change to flags, metric names or supported server versions, because dashboards and alert rules depend on metric names. Confirm the release in the repository, and keep the pinned version in your configuration management so upgrades are deliberate.
How to configure redis_exporter and Prometheus scrape jobs
This sequence takes a Redis or Valkey instance from a running exporter to a verified scrape job in Prometheus, first for one target and then for many. Each step ends with a check so the team knows the data path works before alert rules depend on it.
Place the exporter next to each instance
Deploy redis_exporter on a host or container that can open a network connection to the Redis or Valkey port, usually on the same network segment as the instance. The exporter is a third-party project maintained outside the Prometheus organization, so pin the version your team has tested and record it in your change record. Confirm the exporter supports your server line, since the repository lists Valkey 7.x, 8.x and 9.x and Redis. Done means the exporter process starts and stays running under your service manager without errors in its logs. Check the flags and configuration options in the redis_exporter repository before you write the unit file or container definition.
Confirm the exporter reaches the server
Before Prometheus is involved, check that the exporter can authenticate to the cache and read its statistics. Request the exporter's metrics endpoint from the exporter host with curl and look for Redis or Valkey series such as connected clients and memory use. If the server requires a password or TLS, supply the credentials through the exporter's options, and confirm that they are not written into shell history or world-readable files. If the output is empty or shows connection errors, fix the network path, port or credentials first. Done means the metrics page returns current values for the instance you named.
Add a single-target scrape job
Add one scrape job to the Prometheus configuration that points at the exporter's address and port, with a job label that names the cache role, such as the application it serves. Keep the first job to one target so any error is easy to trace. Validate the configuration file with the promtool check command before you reload Prometheus, and reload through your normal process. Done means the configuration validates and Prometheus accepts the new job without errors on its status page.
Verify the target is up
Open the Targets page in the Prometheus web interface and confirm the new job shows the endpoint with a state of up and a recent last scrape time. Then run a simple PromQL query for a Redis metric, such as the connected clients series, and confirm it returns a value for your instance. If the target is down, read the last error message on the Targets page, which usually points to a network, port or TLS problem. Done means one instance is scraped and its values are visible in a query.
Move to multi-target scraping with the target parameter
For many instances, avoid running one exporter process per cache where possible. Use the exporter's target parameter, which tells the exporter which Redis or Valkey server to scrape on each request. In Prometheus, list each server address as a target, then use relabeling to copy the address into the target parameter and point the scrape address at the exporter itself. Keep the original address in an instance label so the series stay distinguishable. Confirm the exact parameter names and the exporter's multi-target mode in the repository documentation before you write the relabel rules. Done means the relabeling configuration validates.
Confirm each target through the exporter
Test the multi-target path directly before relying on it. Request the exporter's metrics endpoint with the target parameter set to one of your server addresses, and confirm the response reflects that specific server. Repeat for each address in the list, and check that values differ between instances where you expect them to. Mismatched values usually indicate a relabeling mistake that sends every target to the same server. Done means each address returns its own data through the exporter.
Check the full job across all targets
Reload Prometheus and open the Targets page to confirm every instance in the job reports up. Run a query that counts the series by instance label and confirm each cache appears once. Check that the job and instance labels match your naming convention, since alert rules and dashboards will depend on them. Record the configuration in version control so the scrape job can be reviewed and rolled back. Done means every cache in scope is up, labeled consistently and stored as code.
Single-target or multi-target scraping: choosing the layout
In the per-instance layout, every Redis or Valkey server gets its own redis_exporter process, usually next to the node or in the same pod or host group. Prometheus scrapes each exporter directly, so each instance maps to one scrape target with a stable address. This keeps the failure domain small: if one exporter crashes or its credentials expire, only that instance goes dark in monitoring. The cost is volume. Every additional instance adds a process to deploy, patch and monitor, and a scrape job entry or service discovery rule to maintain.
- Failure isolation: an exporter fault affects one instance, and a restart does not touch the others.
- Configuration size: each target is a plain address, so the Prometheus configuration grows with the number of instances rather than with per-target parameters.
- Labels: the instance is identified by the scrape target itself, so alert rules can rely on the
instancelabel without extra relabeling. - Operational load: every exporter is another workload with its own version, resource limits and health checks.
- Ownership: teams that own their own caches can run and upgrade their exporter without coordinating with a central group.
Before choosing this layout, confirm with your platform team how exporter processes are packaged and upgraded, and whether your orchestrator can schedule them alongside each instance.",
In the multi-target layout, one redis_exporter instance serves metrics for many Redis or Valkey servers. Prometheus calls the exporter's HTTP endpoint and passes the server to read in the target URL parameter, typically through relabeling so that each configured address becomes the parameter value while the scrape still goes to the exporter. This keeps the number of exporter processes small and centralizes upgrades. The trade-off is that the exporter becomes a shared component, so a fault or resource limit affects every target it serves, and the target list lives in the Prometheus configuration or a generated file.
- Failure isolation: one exporter failure stops collection for all targets behind it, so a central outage can look like a fleet-wide incident.
- Configuration size: each target adds a relabeling entry or a file entry, so the configuration needs a deliberate way to stay readable as the list grows.
- Labels: the scraped address is the
targetparameter, not the exporter address, so relabeling must copy it into a stableinstancelabel or alerts will reference the exporter. - Credentials: a shared exporter needs access to every server it reads, which can widen the blast radius of a leaked credential.
- Ownership: a central platform team can run one exporter for many application teams, but needs a clear process for adding targets.
Verify that the instance label in your dashboards and alert rules refers to the Redis or Valkey server, and test a target change in a non-production setup first.",
The layout you choose changes which labels identify a server in every query and alert. With per-instance exporters, the scrape target usually supplies instance and the job label supplies the role, so rules such as memory pressure or eviction alerts can group by instance directly. With multi-target scraping, Prometheus records the exporter address as the scrape target unless relabeling rewrites it, so a poorly configured job can make every server look like a single series. Plan the labels before writing rules, because changing them later breaks existing dashboards and silences.
- Stable identity: choose one label that names the Redis or Valkey server and keep it the same across both layouts if you may migrate between them.
- Role and environment: add labels such as environment, cluster or role through static labels or relabeling so one rule can cover a fleet without duplicating it.
- Grouping in rules: write aggregations with
by (instance)or the chosen identity label so that a fault on one server does not hide behind an average. - Silences and routing: route alerts by owning team using a label that the layout reliably sets.
- Cardinality: avoid adding per-key labels in either layout, since key-level detail multiplies series.
Write a test query for each rule against a sample of targets to confirm that the labels separate servers as intended.",
No single layout fits every estate. The decision depends on how many Redis or Valkey servers you run, how many teams own them, and how much change control your organization requires for monitoring. A small estate owned by one team can usually run the simplest arrangement. Larger estates with several owners often benefit from a shared exporter tier, but only when the platform team can run it reliably and the owners accept a shared failure domain. Regulated organizations should also consider whether a shared exporter needs wider credentials than individual teams would grant. The sizing numbers must come from your own inventory, not from a rule of thumb.
- Inventory first: count instances by environment, owner and deployment model, including sentinel and cluster nodes.
- Ownership boundaries: if each team controls its own servers, per-instance exporters keep changes inside that team.
- Central operations: if one group runs all monitoring, a multi-target exporter can reduce the number of components to patch.
- Credential scope: check whether one exporter can hold read-only credentials for every server it would reach.
- Growth: ask how targets are added, reviewed and removed, since that process matters more than the first deployment.
Ask your monitoring owner which layout matches your change process, and document the choice with the owners of the affected servers.
How Prometheus, redis_exporter and Redis or Valkey connect across a trust boundary
The diagram starts with Prometheus, which pulls metrics over HTTP from redis_exporter on the monitoring side of the boundary. The exporter then opens connections to each Redis or Valkey instance over the Redis protocol on the data side, and it reads replication and Sentinel state from those nodes. Check that only Prometheus can reach the exporter, that the exporter's network path to the data nodes is limited to what it needs, and that replicas and Sentinel instances are each listed as their own targets.
Scrape path from Prometheus through redis_exporter to Redis or Valkey nodes.
Which Redis and Valkey metrics map to memory, eviction and replication alerts
This table pairs the server concepts you care about for caches and queues with the kinds of metrics redis_exporter exposes for them, and the operational question each one answers. Use it to decide which series belong on dashboards and which should page someone. Confirm exact metric names against the exporter version you run, because the exporter's naming can change between releases.
| Server concept | Metric family to check | Operational question it answers |
|---|---|---|
| Used memory versus maxmemory | Memory usage gauges and the configured maxmemory limit exposed by the exporter | How close is the instance to its memory ceiling, and will writes start failing or evicting soon? |
| Evicted keys | Evicted keys counter, read as a rate over time | Is the cache dropping entries to stay under its limit, and is that expected for this workload? |
| Connected clients | Connected clients gauge and blocked clients gauge | Are applications opening more connections than planned, or are clients stuck waiting on blocking commands? |
| Replication offset | Master and replica replication offset gauges | How far behind is each replica, and would a failover now lose recent writes? |
| Replication link state | Replica link status and last interaction time metrics | Is the replica connected to its primary right now, and has it gone silent? |
| Keyspace hits and misses | Keyspace hits and keyspace misses counters, read as a hit ratio | Is the cache still doing its job, or has a change in key patterns or expiry driven the miss rate up? |
| Expired keys | Expired keys counter | Are keys aging out at the rate the application expects, or is a TTL policy misconfigured? |
| Key count per database | Per-database key gauges with the db label | Is the keyspace growing unexpectedly, and which logical database is responsible? |
Alert rules for caches and queues that page on real problems
A cache and a queue fail in different ways, so one generic alert set will either page too often or miss the failure that matters. The cards below cover six alert categories that map to the redis_exporter metrics and Sentinel events a team can actually act on. Each threshold should be tuned against the team's own baseline before it is allowed to page anyone.
Memory pressure near the limit
Alert when used memory approaches the configured maxmemory ceiling for a sustained period, not on a single spike. For a cache, sustained pressure means the eviction policy will start removing keys; for a queue, it can mean writes start failing. Check the gap between used memory and the limit, and whether the workload's key count is growing faster than expected.
Unexpected key eviction
Evictions are normal for a cache with an eviction policy, so alert on a rise above the team's baseline rather than on any eviction at all. The same metric on a queue is a defect: queued messages should never be silently dropped. Confirm the policy in effect with the team that owns each Redis or Valkey instance before setting the rule.
Replication link loss or lag
A replica that disconnects from its primary or falls behind on replication offset means failover would lose recent writes or promote stale data. Alert on the link state and on the offset gap between primary and replica, sustained over a window longer than normal sync hiccups. Verify that the replica metrics are scraped from every replica, not only from the primary.
Failover events seen through Sentinel
A failover means a replica was promoted to master, which is expected only when a primary has actually failed or been taken out on purpose. Alert on every failover event, and on repeated failovers in a short period, since a flapping primary usually points to network or resource trouble. Sentinel docs recommend at least three Sentinel instances, so also alert when fewer Sentinels are visible than planned.
Redis Sentinel docsRejected or blocked clients
Rejected connections show that the instance has hit its client limit, and a rising count of blocked clients on a queue usually means consumers have stopped or slowed down. Alert on the rate of rejections rather than the total, and compare blocked clients against the number of consumers the team expects. Client counts also help separate an application outage from a Redis capacity problem.
Scrape failure and stale metrics
If redis_exporter cannot reach an instance, every other alert on that instance goes silent, which looks like health. Alert on the up metric for each exporter target and on a redis_exporter scrape error, so a broken connection or expired credential is noticed quickly. Route these alerts to the same team that owns the Redis or Valkey service.
Why redis_exporter targets go down or show missing metrics
This table lists the failures that most often leave a redis_exporter target down or show gaps in Redis or Valkey metrics. Each row gives the likely cause and the first fix to try, so you can work through the symptom you see. Start with the target status in the Prometheus UI, then match the scrape error to the row that fits.
| Symptom | Likely cause | Fix |
|---|---|---|
| Target down with authentication errors | The exporter's Redis or Valkey password, or the ACL user it connects as, does not match the server, or the user lacks permission for INFO and the commands the exporter calls | Confirm the account in the exporter's connection settings, test it with redis-cli using the same credentials, and grant read access for the commands the exporter needs |
| Connection refused or TLS handshake errors | The exporter connects without TLS to a server that requires it, or with TLS to a plain port, or the certificate authority does not match | Match the exporter's TLS flags to the server's configuration, supply the correct CA and client certificate, and test the handshake outside Prometheus first |
| Target up but Sentinel or replica metrics missing | The exporter points at one node, and the Sentinel or replica addresses it reports are unreachable from the exporter's network | Scrape each Sentinel and replica as its own target, and confirm routes, DNS names and firewall rules between the exporter host and every node address |
| Metrics disappear after a version change | A new Redis or Valkey release renamed or removed fields, or the exporter release does not yet support the server line you upgraded to | Check the exporter's supported server versions for your target, pin both versions in change records, and compare metric names before and after the upgrade |
| Series count grows steeply over time | Per-key or per-database metric collection, or key-pattern options, create one series for each key or label value, and the label set changes as keys come and go | Keep key-level collection narrow with the exporter's key pattern settings, avoid labels built from key names, and watch the series count per target |
| Scrape timeouts on large instances | Commands such as full INFO or key scans take longer than the Prometheus scrape timeout, especially on busy or memory-heavy nodes | Raise the scrape timeout only after checking the cause, disable expensive collectors you do not use, and scrape less often for heavy targets |
Keeping the exporter aligned with Redis and Valkey versions
Before you pin a redis_exporter version, confirm which server you actually run, because Redis and Valkey now ship on separate release lines with different licenses. Redis 8.0 and later can be used under a license of your choice among RSALv2, SSPLv1 and AGPLv3, effective from the general availability release of Redis 8, while Redis 7.4.x to 7.8.x remain under the dual RSALv2 or SSPLv1 license and Redis 7.2.x and earlier remain under BSD-3-Clause. Valkey is licensed under BSD-3-Clause. Read the Redis licenses page to confirm which terms apply to your exact Redis build, and have your legal or compliance team sign off before you standardize on either server.
Valkey is compatible with Redis OSS 7.2 and all earlier open-source Redis versions, and existing Redis client libraries connect to Valkey without code changes. That compatibility matters for monitoring because your exporter scrapes the same INFO and command output from either server, but compatibility of the server does not guarantee that the exporter supports every version. redis_exporter documents support for Valkey 7.x, 8.x and 9.x and for Redis, so check the redis_exporter repository for the exact versions listed in its current README before upgrading either side.
Treat the server version as an input to every exporter upgrade. Record the Redis or Valkey version on each target, confirm the exporter release notes cover that line, and test the new exporter against a staging node first. Valkey maintains several release lines at once, and Redis publishes security releases across multiple lines, so a single fleet can run more than one major line. Ask your platform team to confirm which lines are in use, because a metric that disappears after an exporter or server upgrade is often the first sign of a version mismatch.
Questions buyers ask about Redis and Valkey monitoring with Prometheus
What does Redis and Valkey monitoring with Prometheus cost, and what drives it?
The software is free to use, so the cost is the work and the infrastructure. You pay for scoping, building the exporter deployment, scrape configuration, dashboards and alert rules, and for the people who run them afterward. Costs rise with the number of Redis or Valkey instances, the number of environments (development, staging, production), how many clusters and replicas need separate targets, the depth of the security review, and how much alert design is needed to avoid noisy paging. Most of the spend is one-time build work, while retention, upgrades and on-call tuning recur. DeployOpen does not publish a price list. Ask any partner for a quote tied to a written scope that lists instances, environments, alert rules and handover deliverables.
How long does a Redis or Valkey monitoring build take?
The timeline is set by how many instances and environments are in scope, how many of them are already reachable from the Prometheus server, and how long the security and change approvals take. Standalone instances with existing Prometheus are the fastest path. Sentinel setups, Valkey or Redis Cluster deployments, and networks that need firewall changes add work. Alert design usually takes the longest because thresholds must be agreed with the owners of each cache or queue. Ask for a timeline that breaks the work into scoping, exporter deployment, scrape validation, alerting and handover, and confirm which steps depend on your change windows.
What must our internal team provide before the work starts?
Prepare four things. First, access: network paths from the Prometheus server to each Redis or Valkey port, and a read-only monitoring account on each instance. Second, owners: a named person for each cache or queue who can approve thresholds and receive alerts. Third, baselines: a few weeks of memory, hit rate, eviction and latency history, if you have it, so alert thresholds reflect real load. Fourth, environment details: versions in use, whether TLS is enabled, how Sentinel or cluster topology is arranged, and where secrets are stored. Missing owners are the most common cause of delay, because alerts without an accountable team go unanswered.
Can our own team build Redis or Valkey monitoring without a partner?
Yes, if your team already runs Prometheus and has someone who can write PromQL and manage configuration files. redis_exporter is a single exporter process that reads targets from its configuration and can be scraped like any other job. The harder parts are the ones that need judgment: choosing which metrics matter for your workload, setting eviction and memory thresholds that will not flood on-call, handling credentials and TLS, and keeping the setup current as you upgrade Redis or Valkey. A partner is most useful when you need a fixed scope, a security review, or an outside check on alert design. Decide based on how much of this your team can own after handover.
Is redis_exporter supported by the Prometheus project?
No. redis_exporter is maintained outside the Prometheus organization. The Prometheus exporters page lists the Redis exporter among externally contributed exporters, not official ones. That means support comes from its own maintainers and community, so check its repository for release activity and open issues before you commit to it. It supports Valkey 7.x, 8.x and 9.x as well as Redis. Your operations team should own its upgrades, and any support contract you buy should name who handles exporter issues, Prometheus issues and Redis or Valkey issues separately.
Does the Redis license change affect how we monitor Redis?
Monitoring with an exporter does not change your Redis license obligations on its own, but the version you run does determine which terms apply. Redis 7.2 and earlier remain under BSD-3-Clause, while Redis 8.0 and later can be used under RSALv2, SSPLv1 or AGPLv3 at the user's choice. Redis 7.4.x to 7.8.x use the dual RSALv2 or SSPLv1 license. Valkey is licensed under BSD-3-Clause. Legal review should confirm the terms for your exact version and whether you modify Redis code. Ask your counsel to confirm this before standardizing on a version.
What does a monitoring build leave us to run afterward?
After handover, your team runs the exporter processes, the Prometheus scrape jobs, the dashboards and the alert rules. Recurring work includes upgrading the exporter and Prometheus, reviewing alert noise each month, rotating the monitoring account credentials, and adding targets when new caches or queues appear. Ask for documented runbooks for each alert, a list of the scrape targets and their owners, and a test that confirms alerts reach the right receiver. Ongoing support and continuous testing can be contracted as a retainer if you want outside help after the build.
How DeployOpen works on this
DeployOpen plans and builds Redis and Valkey monitoring with the third-party redis_exporter inside your own infrastructure, starting from a written scope that names the instances, metrics and alert rules to be covered. We test the setup, document it and hand it to your team, with ongoing support available as a retainer.
How we scope
- Inventory every Redis and Valkey instance, its version, topology and whether it runs standalone, with Sentinel or in cluster mode.
- Agree in writing which exporter targets, databases and metric families are in scope, including memory, eviction and replication.
- Confirm which alert rules, receivers and dashboards are deliverables, and which team owns each queue or cache they protect.
How we build
- Deploy redis_exporter with single-target and multi-target scraping configured for your topology, with credentials managed as secrets.
- Write and test alert rules for memory pressure, evictions, replication lag and cache or queue saturation against your baselines.
- Restrict exporter access to the monitoring network and check that scrape configuration works with your Prometheus version.
How we hand over
- Deliver the configuration, rule files and a runbook describing what each alert means and the first steps to take.
- Walk your operations and on-call staff through the dashboards, alert routing and how to add a new Redis or Valkey target.
- Record the decisions made, including the exporter version tested and any open items your team must confirm before go-live.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, exporter and Prometheus upgrades, and continuous review of alert rules are available as a retainer.
- Upgrades are planned against the Valkey and Redis release lines you run, so changes to exporter or server versions are tested first.

