Skip to content

Commit

Permalink
renamed getMySQLStoreMetric -> getScopedMetric
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
  • Loading branch information
shlomi-noach committed Jul 11, 2024
1 parent 1f584a1 commit 85994ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletserver/throttle/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (check *ThrottlerCheck) Check(ctx context.Context, appName string, scope ba
}

metricResultFunc := func() (metricResult base.MetricResult, threshold float64) {
return check.throttler.getMySQLStoreMetric(ctx, metricScope, metricName)
return check.throttler.getScopedMetric(metricScope, metricName)
}

metricCheckResult := check.checkAppMetricResult(ctx, appName, metricResultFunc, flags)
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletserver/throttle/throttler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ func (throttler *Throttler) getAggregatedMetric(aggregatedName string) base.Metr
return base.NoSuchMetric
}

func (throttler *Throttler) getMySQLStoreMetric(ctx context.Context, scope base.Scope, metricName base.MetricName) (base.MetricResult, float64) {
func (throttler *Throttler) getScopedMetric(scope base.Scope, metricName base.MetricName) (base.MetricResult, float64) {
thresholdVal, found := throttler.metricThresholds.Get(metricName.String())
if !found {
return base.NoSuchMetric, 0
Expand Down

0 comments on commit 85994ed

Please sign in to comment.