-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane teambugSomething isn't workingSomething isn't working
Description
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.
We are likely missing something in the diagnostics action handler to trigger them.
elastic-agent/internal/pkg/agent/application/actions/handlers/handler_action_diagnostics.go
Lines 90 to 100 in 18beeba
| // 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
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane teambugSomething isn't workingSomething isn't working