Skip to content

Commit

Permalink
add back monitoring for agentless policies
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Aug 28, 2024
1 parent 02a3992 commit 876e438
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export function useSetupTechnology({
const [newAgentlessPolicy, setNewAgentlessPolicy] = useState<AgentPolicy | NewAgentPolicy>(
generateNewAgentPolicyWithDefaults({
supports_agentless: true,
monitoring_enabled: [],
})
);

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

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

0 comments on commit 876e438

Please sign in to comment.