[MongoDB] Add groupby ability on resource_metadata

It would be useful to have groupby functionality to derive meters
by their resource_metadata. This commit adds groupby by
resource_metadata.instance_type for mongodb.

Change-Id: I26e7fb4fa2835d283cb6c83e0aec2dba4ac9bf00
Partially-Closes-Bug: 1331508
fix import oslo.concurrency issue

  Details can be checked in bug description

Change-Id: I01781266740b6041b72d17eb226c60b0cdde732c
Closes-Bug: #1398656
Merge "[MongoDB] Add groupby ability on resource_metadata"