Skip to content

Commit e933dd5

Browse files
committed
fix: e2e metrics name
Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
1 parent b16f232 commit e933dd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/e2e/tests/bandwidth_limit.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ var BandwidthLimitTest = suite.ConformanceTest{
8484

8585
// Verify the bandwidth limit filter throttled the request.
8686
// The stat_prefix "http_bandwidth_limiter" exposes the Prometheus counter
87-
// envoy_http_bandwidth_limiter_request_enforced.
87+
// envoy_http_bandwidth_limiter_http_bandwidth_limit_request_enforced.
8888
if err := wait.PollUntilContextTimeout(t.Context(), 3*time.Second, time.Minute, true,
8989
func(_ context.Context) (bool, error) {
9090
v, err := prometheus.QueryPrometheus(suite.Client,
91-
`sum(envoy_http_bandwidth_limiter_request_enforced)`)
91+
`sum(envoy_http_bandwidth_limiter_http_bandwidth_limit_request_enforced)`)
9292
if err != nil {
9393
tlog.Logf(t, "failed to query Prometheus: %v", err)
9494
return false, err
@@ -102,7 +102,7 @@ var BandwidthLimitTest = suite.ConformanceTest{
102102
}
103103
return false, nil
104104
}); err != nil {
105-
t.Errorf("envoy_http_bandwidth_limiter_request_enforced never became positive: %v", err)
105+
t.Errorf("envoy_http_bandwidth_limiter_http_bandwidth_limit_request_enforced never became positive: %v", err)
106106
}
107107
})
108108
},

0 commit comments

Comments
 (0)