VictoriaMetrics/lib/vmselectapi
Aliaksandr Valialkin 7d5d33fd71
lib/storage: return marshaled metric names from SearchMetricNames
Previously SearchMetricNames was returning unmarshaled metric names.
This wasn't great for vmstorage, which should spend additional CPU time
for marshaling the metric names before sending them to vmselect.

While at it, remove possible duplicate metric names, which could occur when
multiple samples for new time series are ingested via concurrent requests.

Also sort the metric names before returning them to the client.
This simplifies debugging of the returned metric names across repeated requests to /api/v1/series
2022-06-28 18:16:32 +03:00
..
api.go lib/storage: return marshaled metric names from SearchMetricNames 2022-06-28 18:16:32 +03:00
server.go lib/storage: return marshaled metric names from SearchMetricNames 2022-06-28 18:16:32 +03:00