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

feat: Add settings for cpu/mutex/block profiling options #13278

Closed chaudum closed 1 week ago

chaudum commented 1 week ago

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