Skip to content

Commit

Permalink
[Fleet] add back monitoring for agentless policies (#191635)
Browse files Browse the repository at this point in the history
Added back agent monitoring on agentless policies as requested. It was
incorrectly removed in #189612
  • Loading branch information
juliaElastic authored Aug 29, 2024
1 parent dc7290b commit 2678101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function useSetupTechnology({
const [newAgentlessPolicy, setNewAgentlessPolicy] = useState<AgentPolicy | NewAgentPolicy>(
generateNewAgentPolicyWithDefaults({
supports_agentless: true,
monitoring_enabled: [],
monitoring_enabled: ['logs', 'metrics'],
})
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ describe('When on the package policy create page', () => {

expect(sendCreateAgentPolicy).toHaveBeenCalledWith(
expect.objectContaining({
monitoring_enabled: [],
monitoring_enabled: ['logs', 'metrics'],
name: 'Agentless policy for nginx-1',
supports_agentless: true,
}),
Expand Down

0 comments on commit 2678101

Please sign in to comment.