Skip to content

Commit

Permalink
Add error code as a label to the aws_ebs_csi_api_request_errors_total
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam authored and ConnorJC3 committed Feb 27, 2025
1 parent de37f59 commit f50b328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cloud/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func RecordRequestsMiddleware(deprecatedMetrics bool) func(*middleware.Stack) er
metrics.Recorder().IncreaseCount(metrics.DeprecatedAPIRequestThrottles, labels)
}
} else {
labels["code"] = apiErr.ErrorCode()
metrics.Recorder().IncreaseCount(metrics.APIRequestErrors, labels)
if deprecatedMetrics {
metrics.Recorder().IncreaseCount(metrics.DeprecatedAPIRequestErrors, labels)
Expand Down

0 comments on commit f50b328

Please sign in to comment.