-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for AWS SDK V2 MetricsPublisher
#29
Comments
I took a quick look at this to see what pre-requisites might be needed. It looks like the existing CloudWatch publisher does internal aggregation and publishes data either as a statistic set (summary aggregator) or values/counts arrays (detailed aggregator) on an interval. I think 2 things are required:
EMFMetricPublisher metricPublisher = EMFMetricPublisher.create();
DynamoDbClient dynamoDb = DynamoDbClient.builder()
.overrideConfiguration(c -> c.addMetricPublisher(metricPublisher))
.build();
// function code...
logger.flush();
metricPublisher.flush(); |
See the related discussion in aws/aws-sdk-java-v2#2068 (comment) The main comment/concern there was that every API call would lead to a I wonder, if there's something can be done on the EMF library side here to support emitting multiple metrics loggers efficiently e.g. to minimize the calls to This can be used in an |
In most cases, writing to stdout should not be terribly expensive. It's only an issue (AFIAK) in environments with heavy multi-threading and very frequent writes. To reduce the cost of this, there are a few options:
|
Any updates on this? This is still a requirement for my team to reduce our dependency in Lambda on |
I have an application that uses AWS SDK V2 to perform multiple API calls, and that monitors those API calls using the recently released metrics module for AWS SDK V2
My application runs on Lambda, and uses EMF to avoid the pitfalls of calling CloudWatch APIs directly to emit monitoring metrics. Using this library we've been able to replace all of our CloudWatch API calls, except for the metrics emitted by the AWS SDK V2.
Because AWS' recommendation for metric tracking on ephemeral containers is to use EMF, it would be good to have integration in this library with the
MetricsPublisher
interface that the AWS SDK V2 exposes, so that we can monitor our AWS SDK calls with EMF as well.I'm currently interested in Lambda support, but support for containers would also be good.
The text was updated successfully, but these errors were encountered: