elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
16 stars 144 forks source link

Fix block and mutex profiles in the diagnostic boundle #5115

Open alexsapran opened 3 months ago

alexsapran commented 3 months ago

Describe the issue:

When you request diagnostics from Elastic-Agent, you get the block and mutex profiles. However, according to https://github.com/elastic/beats/blob/main/libbeat/docs/http-endpoint.asciidoc, you need to enable them since they are disabled by default, resulting in empty profiles.

Both are useful to debug contention problems within the running Beats.

Describe a specific use case:

You can use the block profile to map different goroutine states running/waiting and follow methodologies such as TSA to see if your application is waiting.

What is the definition of done?

When requesting diagnostics from Elastic-Agent, the block profile is not empty.

For confirmed bugs, please report:

elasticmachine commented 3 months ago

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)