The log message is not in the good condition. 'metric' is the original m...

...etric to be aggregated. It will never match an aggregated metric. If the aggregate_metrics array is empty, this is where it means the metric didn't match any rule
@procule What about this line?  If the condition will never be satisfied then something needs to be done with this as well.