Skip to content

Redis: duplicate slowlog entries emitted #19974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bvs-langchain opened this issue Apr 1, 2025 · 0 comments
Open

Redis: duplicate slowlog entries emitted #19974

bvs-langchain opened this issue Apr 1, 2025 · 0 comments

Comments

@bvs-langchain
Copy link

bvs-langchain commented Apr 1, 2025

We had a case where the Redis slowlog metrics showed duplicate entries:

  • redis.slowlog.micros.95percentile showed 4 instances of the keys command with exactly the same duration. it also showed other duplicate entries in instances 2-4 (e.g. hdel at 55.73ms) - this is what tipped us off to the potential duplicates
  • gcp.redis.commands.calls showed only a single instance
  • manually connecting and running SLOWLOG GET showed 2 instances of keys around the time of the first reported command

Image

Is this expected behavior? If so, is there a recommended way to deduplicate when viewing the slowlog metrics in timeseries?

  • Cluster Agent 7.61.0 - Commit: 202f54b - Serialization version: v5.0.137 - Go version: go1.22.8

# cat /etc/datadog-agent/conf.d/redisdb.yaml

cluster_check: true
init_config:
instances:

  - host: <host>
    port: 6379
    tags:
      - ...
    service: redis

    "keys":
      - <keys>
      
    min_collection_interval: 10
  
  - host: <host>
   ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant