Skip to content

Commit

Permalink
fix query plan cache misses metric
Browse files Browse the repository at this point in the history
Signed-off-by: shanth96 <[email protected]>
  • Loading branch information
shanth96 committed Aug 13, 2024
1 parent 33030b7 commit 70f9223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70f9223

Please sign in to comment.