prometheus/web/api/v1
Bryan Boreham 41758972e4
web/api: optimize labelnames/values with 1 set of matchers (#12888)
* web/api: optimize labelnames/values with 1 set of matchers

If there is exactly one set of matchers provided, we can skip adding
the results to a map and getting them back out again.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

---------

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-11-13 19:28:48 +01:00
..
api.go web/api: optimize labelnames/values with 1 set of matchers (#12888) 2023-11-13 19:28:48 +01:00
api_test.go web : use Go standard package 2023-11-08 06:37:59 +00:00
codec.go Implement fully-featured content negotiation for API requests, and allow overriding the default API codec. 2023-03-09 12:02:45 +11:00
codec_test.go Implement fully-featured content negotiation for API requests, and allow overriding the default API codec. 2023-03-09 12:02:45 +11:00
errors_test.go web : use Go standard package 2023-11-08 06:37:59 +00:00
json_codec.go web/api: use stream encoder for embedded labels 2023-07-24 20:42:36 +01:00
json_codec_test.go Merge branch 'main' into api-response-format-extension-point 2023-07-04 13:26:13 +10:00