From 70f9223c5a901d6aa75183a29449a5a32171ca85 Mon Sep 17 00:00:00 2001 From: shanth96 Date: Tue, 13 Aug 2024 16:09:27 -0400 Subject: [PATCH] fix query plan cache misses metric Signed-off-by: shanth96 --- go/vt/vtgate/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtgate/executor.go b/go/vt/vtgate/executor.go index bc492dd0335..69a279acb03 100644 --- a/go/vt/vtgate/executor.go +++ b/go/vt/vtgate/executor.go @@ -208,7 +208,7 @@ func NewExecutor( return e.plans.Metrics.Hits() }) stats.NewCounterFunc("QueryPlanCacheMisses", "Query plan cache misses", func() int64 { - return e.plans.Metrics.Hits() + return e.plans.Metrics.Misses() }) servenv.HTTPHandle(pathQueryPlans, e) servenv.HTTPHandle(pathScatterStats, e)