metrics: reduce gc pressure (#5530)

This commit is contained in:
Denis Mishin 2025-03-18 13:48:49 -04:00 committed by GitHub
parent 562101ae03
commit 5ef16bcd28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 393 additions and 23 deletions

View file

@ -29,7 +29,7 @@ envoy_server_initialization_time_ms_bucket{le="1000"} 1
}
func getMetrics(t *testing.T, envoyURL *url.URL, header http.Header) []byte {
h, err := PrometheusHandler([]ScrapeEndpoint{{Name: "envoy", URL: *envoyURL}}, "test_installation_id", time.Second*20)
h, err := PrometheusHandler([]ScrapeEndpoint{{Name: "envoy", URL: *envoyURL}}, time.Second*20, nil)
if err != nil {
t.Fatal(err)
}