Metric metadata endpoint

fixes #388