Feature added to query /metrics using type and key

Created a new feature in ``/metrics`` to allow querying using ``type`` and ``key``.

Added Unit tests to verify the feature as well.