grafana-datasource icon indicating copy to clipboard operation
grafana-datasource copied to clipboard

Why get label names and values from the `/api/v1/series` API, not the `/api/v1/labels` and `/api/v1/label/…/values` API ?

Open chenlujjj opened this issue 7 months ago • 1 comments

Hi team, is it better to use the /api/v1/labels and /api/v1/label/…/values APIs instead of /api/v1/series API to fetch label names and values when doing auto-completion in code mode and drop-down list in builder mode, because the latter requests much more data from the database, and sometimes get into timeout or hit maxSeries limit?

chenlujjj avatar Jul 11 '24 09:07 chenlujjj