You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/prometheus/client_golang/blob/master/prometheus/registry.go#L381 starts one goroutine per registered Collector. Cases of 1M registered collectors have been reported. With fast collections, the overhead of starting a goroutine isn't really worth it, and there is a notable memory peak caused by it. Let's come up with a way to adaptively find a tradeoff. With fast collectors, one goroutine is fine. Even with slow ones, starting thousands of goroutine will have diminishing returns.
The text was updated successfully, but these errors were encountered:
https://github.com/prometheus/client_golang/blob/master/prometheus/registry.go#L381 starts one goroutine per registered
Collector
. Cases of 1M registered collectors have been reported. With fast collections, the overhead of starting a goroutine isn't really worth it, and there is a notable memory peak caused by it. Let's come up with a way to adaptively find a tradeoff. With fast collectors, one goroutine is fine. Even with slow ones, starting thousands of goroutine will have diminishing returns.The text was updated successfully, but these errors were encountered: