prometheus/web/api/v1
gotjosh 428089f83f api: tests for /target/metadata API endpoint
This commit introduces several test cases for the current /targets/metadata API endpoint.

To achieve so, we use a mock of the metadataStore and inject it to the targets under test.

Currently, three success cases are covered: with a metric name, with a target matcher, and with both. As for the failure scenario, the one where we couldn't match against a particular metric is covered.

Signed-off-by: gotjosh <josue@grafana.com>
2019-12-05 10:30:00 +00:00
..
api.go Port tsdb to use pkg/labels. (#6326) 2019-11-18 11:53:33 -08:00
api_test.go api: tests for /target/metadata API endpoint 2019-12-05 10:30:00 +00:00