diff --git a/test/new-e2e/system-probe/errors.go b/test/new-e2e/system-probe/errors.go index 0ac077d8a12765..297f80bb0184a5 100644 --- a/test/new-e2e/system-probe/errors.go +++ b/test/new-e2e/system-probe/errors.go @@ -47,6 +47,8 @@ const ( ec2StateChangeTimeoutError ioTimeout tcp22ConnectionRefused + ec2InstanceCreateTimeout + ddAgentRepoFailure ) type handledError struct { @@ -104,6 +106,18 @@ var handledErrorsLs = []handledError{ metric: "ssh-connection-refused", action: retryStack | emitMetric, }, + { + errorType: ec2InstanceCreateTimeout, + errorString: "creating EC2 Instance: operation error", + metric: "ec2-instance-create-timeout", + action: retryStack | emitMetric, + }, + { + errorType: ddAgentRepoFailure, + errorString: "Failed to update the sources after adding the Datadog repository.", + metric: "apt-dd-agent-repo-failure", + action: emitMetric, + }, } type retryHandler struct {