mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
metrics: reduce gc pressure (#5530)
This commit is contained in:
parent
562101ae03
commit
5ef16bcd28
7 changed files with 393 additions and 23 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue