mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-19 16:35:48 -04:00
Fixes: https://github.com/prometheus/prometheus/issues/16334 Related to: - https://github.com/prometheus/prometheus/pull/15238 - https://github.com/prometheus/prometheus/pull/16052 Currently, when the GOGC environment variable is set -- and no `runtime` block is set in the Prometheus config file -- it is ignored and the default value of 75% is always used. However, if there is an empty runtime block (e.g. `runtime: {}`), _then_ the GOGC environment variable is checked. This PR changes this behavior to consistently check and use the GOGC environment variable when it is set (unless the `gogc` field is set in the `runtime` block of the loaded config file, in which case it still gives that precedence). Co-authored-by: Adam Rambo <arambo@protonmail.com> Signed-off-by: Will Hegedus <whegedus@akamai.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| config.go | ||
| config_default_test.go | ||
| config_test.go | ||
| config_windows_test.go | ||
| reload.go | ||
| reload_test.go | ||