Skip to content

Add cache-hit-specific duration metric (contrast with cache_resolution) #682

Open

Description

@kriszyp

The existing duration metric can't easily be filtered to show only cache hits, making it hard to contrast hit vs. miss performance against cache_resolution.

Ask

Either:

  1. Add a cache_hit_duration metric that captures latency for requests served from cache, OR
  2. Add a cache_hit label/dimension to the existing duration metric so it can be filtered in Grafana.

The goal is to be able to show: "cache hit latency = X ms vs. cache miss latency = Y ms" in a dashboard.

If there's already a way to compute this with existing metrics, documentation would be equally valuable.


🤖 Filed by Claude on behalf of Kris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:metricsMetrics, analytics, and observabilityenhancementNew feature or requestfrom-jiraMigrated or originated from a Jira ticket

    Type

    No type

    Fields

    Priority

    P2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions