Elastic Agent removes all metricbeat unix-sock endpoint when any metricbeat is killed

Hi, all
We try to use elastic agent to manage beats, and configured agent.monitoring to use a sidecar metricbeat to monitor the managed beats,after all the beats are started,if we kill the sidecar metricbeat process,the elastic agent will start it again,but the sidecar metricbeat can not get the metrics of the main process any more. We check and debug the code, and find that the unix sock endpoint of sidecar metricbeat and main metricbeat are in the same dir,and elastic agent removes the whole dir in cleanup before restart the sidecar metricbeat.

How should we fix it,in metricbeat or in elastic agent?

Thank you.

Regards,
buptubuntu

Any one had the problem?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.