awslabs/aws-embedded-metrics-java

ECS formatted image name is not suitable as a default log group

ChenAndrew opened this issue · 0 comments

currently, the ECSEnvironment getName() returns a name in the format of "imageName:tag". This does not fit the regex for cloudwatch groups.

I'm getting the following error

2021-01-26T00:51:53Z E! [outputs.cloudwatchlogs] InvalidParameterException: 1 validation error detected: Value 'testServiceName:latest-metrics' at 'logGroupName' failed to satisfy constraint: Member must satisfy regular expression pattern: [\.\-_/#A-Za-z0-9]+, will not retry the request
--

I know you can override this by using the environment variable but this should work out of the box.