Skip to content

Commit

Permalink
[EBPF] Add more recognized error types to KMT (#29365)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm authored and grantseltzer committed Oct 2, 2024
1 parent 10cc4e4 commit ffc6f0a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/new-e2e/system-probe/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const (
ec2StateChangeTimeoutError
ioTimeout
tcp22ConnectionRefused
ec2InstanceCreateTimeout
ddAgentRepoFailure
)

type handledError struct {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ffc6f0a

Please sign in to comment.