Skip to content

UnitChangeModified triggered on units that are not changed creating wierd statuses on Kibana #138

@bhapas

Description

@bhapas

Scenario

Scenario where there is an agent policy with an existing package policies with some input [ cel for ex., ]. The status of integrations looks like

Image

But when a package is added / removed from the agent policy then the input status are in wierd state.

Image

What's happening

When 1 out of 3 package policies is removed from the agent policy syncUnits seems to be called and a UnitChangeModified is triggered on existing units [ Although nothing has changed ].

When it reaches beats listener, an updateUnit on the unit concerned is triggered leading to a status of Configuring and Agent health shown Healthy.

Although there are no changes on the units, since a UnitChanged is triggered beat input recalculates the status of all the input units and streams associated and triggers another UpdateState on the clientUnit.

Not sure if this is a bug or intended with the current design between agent-client and beats.

cc: @cmacknz @andrewkroh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions