Skip to content

[beats receivers] EDOT diagnostics are not collected when diagnostics are requested through Fleet #10262

@cmacknz

Description

@cmacknz

When using the request diagnostics action in Fleet, the edot/ diagnostics sub-directory is missing from the diagnostics. They are present when collected using elastic-agent diagnostics locally.

Image

We are likely missing something in the diagnostics action handler to trigger them.

// The handler has a rate limiter to limit the number of diagnostics actions that are run at once.
func (h *Diagnostics) Handle(ctx context.Context, a fleetapi.Action, ack acker.Acker) error {
h.log.Debugf("handlerDiagnostics: action '%+v' received", a)
action, ok := a.(*fleetapi.ActionDiagnostics)
if !ok {
return fmt.Errorf("invalid type, expected ActionDiagnostics and received %T", a)
}
go h.collectDiag(ctx, action, ack)
return nil
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions