Add HTTP API for Metric