fix for gh-1331 MetricFilter now supports uri template variables when av...

Proposed fix for #1331