prometheus/web/api/v1
gotjosh 0a0a228db3 api: provide per metric metadata (#6420)
* api: provide per metric metadata

This adds a new endpoint that provides per metric metadata via the V1 API.

It collapses metadata that is equal across all targets, and aggregates under the same metric name the ones that differ.

* Allow tests to be asserted on response length

Some tests e.g. limit on API responses, don't require an assertion on
equality.

This allows us to assert against response length instead of
equality.

Signed-off-by: gotjosh <josue@grafana.com>
2019-12-10 14:56:16 +00:00
..
api.go api: provide per metric metadata (#6420) 2019-12-10 14:56:16 +00:00
api_test.go api: provide per metric metadata (#6420) 2019-12-10 14:56:16 +00:00