HarperFast / HarperFast/harper

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

Open
#682 0 comments 0 reactions 0 assignees View on GitHub
area:metrics enhancement from-jira
Dominant language
JavaScript
Stars
89
Forks
10
Avg merge
2d 6h
Merged PRs (30d)
200

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.