"MetricStorage:AWS/Logs-EMF" cost without line_item_resource_id

0

I checked my account cost report and found there is a cost item which do not have line_item_resource_id, it's line_item_operation is "MetricStorage:AWS/Logs-EMF". Below is the result from athena.

Enter image description here

How can I know the cost come from which services and resources?

Thanks, Mingtong

2 Answers
0

MetricStorage:AWS/Logs-EMF is the cost associated to sending custom metrics to CloudWatch using the "Embedded Metric Format", which is a special syntax to structure your logs to automatically extract metrics from them. Typical sources of EMF logs are containers and lambdas, for example if you use advanced monitoring on your lambdas, or emit logs in structured format from your lambdas. Likewise, if you activate container insights, it will emit some metrics using this format.

profile pictureAWS
Jsc
answered 10 months ago
  • Thanks for your response, is there any way to know the "MetricStorage:AWS/Logs-EMF" is from which lambda or containers?

0

Hi, I don't think there is a direct way to establish the relationship. When you browse your list of metrics in the CloudWatch console, if you have high counters of metrics in the Lambda insights or container insights namespaces, that would be a way to identify high contributors to that usage. If there are any custom metrics created by EMF logs that you emit yourself, they would go in the namespace you have set in the EMF logs. Generally speaking, the counters on the metrics list allow you to detect high usage in a namespace or metric name (e.g. high number of dimensions on a same metric name).

profile pictureAWS
Jsc
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions