Skip to content

Commit

Permalink
use logs and metrics only in agentless
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Aug 29, 2024
1 parent 876e438 commit 38aca1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function useSetupTechnology({
const [newAgentlessPolicy, setNewAgentlessPolicy] = useState<AgentPolicy | NewAgentPolicy>(
generateNewAgentPolicyWithDefaults({
supports_agentless: true,
monitoring_enabled: ['logs', 'metrics'],
})
);

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: ['logs', 'metrics', 'traces'],
monitoring_enabled: ['logs', 'metrics'],
name: 'Agentless policy for nginx-1',
supports_agentless: true,
}),
Expand Down

0 comments on commit 38aca1e

Please sign in to comment.