You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metric to count the number of requests made to cloudwatch API (irrespective of response) and count request errors if no valid data is returned.
OR
Include such a metric as part of yace_cloudwatch_requests_total and yace_cloudwatch_request_errors.
Reason:
No way to detect case where the IAM authentication fails or Cloudformation stack is misconfigured. A request is made, but there is no response. There seems to be no counter for this.
How this became an issue:
While testing for correctness of YACE Cloudwatch API requests using yace_cloudwatch_requests_total and yace_cloudwatch_request_errors:
Intentionally removed IAM from service account for YACE pod
service was denied, but yace_cloudwatch_requests_total doesn't increment - seems like it counts the number of "successful responses to requests" and not "number of requests irrespective of responses received".
Having metrics to count total requests submitted and response errors will help detect such edge cases.
👋 #1338 isn't exactly what you are asking for but I think solves the problem you are having. Every CloudWatch API call should now either increment the success or error metric depending on the result.
Auth errors should also be present in the logs as an indicator something is wrong.
Is there an existing issue for this?
Feature description
Feature request:
Metric to count the number of requests made to cloudwatch API (irrespective of response) and count request errors if no valid data is returned.
OR
Include such a metric as part of
yace_cloudwatch_requests_total
andyace_cloudwatch_request_errors
.Reason:
No way to detect case where the IAM authentication fails or Cloudformation stack is misconfigured. A request is made, but there is no response. There seems to be no counter for this.
How this became an issue:
While testing for correctness of YACE Cloudwatch API requests using
yace_cloudwatch_requests_total
andyace_cloudwatch_request_errors
:yace_cloudwatch_requests_total
doesn't increment - seems like it counts the number of "successful responses to requests" and not "number of requests irrespective of responses received".Having metrics to count total requests submitted and response errors will help detect such edge cases.
What might the configuration look like?
No response
Anything else?
yet-another-cloudwatch-exporter/pkg/clients/cloudwatch/v1/client.go
Line 97 in edd637e
^ similar counter, but should be incremented before a request is made to the API. and counter to check for request errors
The text was updated successfully, but these errors were encountered: