I'm trying to use CloudWatch embedded metrics format (emf) inside a beanstalk environment running Docker image.
(Documentation on emf here and here )
To be able to emit emf metrics, the aws-cloudwatch-agent needs to have the following configuration:
{
"logs": {
"metrics_collected": {
"emf": { }
}
}
}
However I'm not able to find the namespace definition to pass emf configuration to beanstalk, using the .ebextensions
method described here.
The available namespaces seem to just stream the existing logs.
How can I enable CloudWatch emf publishing in an elastic beanstalk environment?