Solution 1:

According to documentation:

Metric filters are case sensitive.

So this would be the correct call:

dimensions: [{ :name => 'InstanceId', :value => 'i-14b21212' }],