awslabs/aws-embedded-metrics-java

InvalidDimensionException when running on ECS Fargate with fluent-bit

markkuhn opened this issue · 2 comments

An InvalidDimensionException is being thrown when using fluent-bit since getLogGroupName() is returning an empty string:

public String getLogGroupName() {
// FireLens / fluent-bit does not need the log group to be included
// since configuration of the LogGroup is handled by the
// fluent bit config file
if (this.fluentBitEndpoint != null) {
return "";
}

Is there an ETA for the fix, or a workaround to avoid this issue?

@rohitnair
A fix is being worked on. I do not have an ETA for you.

For now you can turn off default dimensions by calling resetDimensions(false) before you start setting your own custom dimensions. This will clear all dimensions and stop using default dimensions.
More information on resetDimensions() here.