spring-projects / spring-projects/spring-data-redis

There is no way to get Lettuce Redis Connection pool metrics

Open
#2,275 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: pending-design-work theme: Observability type: enhancement
Dominant language
Java
Stars
1.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

We wanted to get metrics from the Lettuce Redis connection pool. But I don't see any meter binder for redis connection pools unlike JDBC Datasource. Is there any other way we can get the metrics from the Redis Connection pools?

In case of enabling the JMX, there is no way to set the JMX base name and prefixes on the commons-pool2. Can anyone help on this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how Lettuce Redis connection pools are created and whether Spring Data Redis exposes any pool metrics or Micrometer binder. Compare the available commons-pool2 JMX configuration with the requested base name and prefixes. Done should mean a supported, clearly documented way to obtain connection-pool metrics, or a documented explanation of the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, redis, spring
Domain
backend, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.