grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
22.73k stars 3.31k forks source link

chore: [k207] feat: Add settings for cpu/mutex/block profiling options #13281

Closed grafanabot closed 1 week ago

grafanabot commented 1 week ago

Backport f06eabbf0e2c3db3ec899c224d6c947c5edd7d6a from #13278


What this PR does / why we need it:

The HTTP endpoints for scraping CPU, mutex and block profiles are already exposed by the server, however, block and mutex profiling must be explicitly enabled by setting a non-zero value for SetBlockProfileRate and SetMutexProfileFraction respectively.

For more information about the available options consult the Go documentation:

Checklist