Skip to content

Redis: duplicate slowlog entries emitted #19974

Open
@bvs-langchain

Description

@bvs-langchain

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>
   ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions