Return metric list from InfluxDB as JSON

Decode the metrics names from InfluxDB and return JSON.

Change-Id: I36df355d3c673a34feaed2b49907885f6f9febf8