From f27098a976b29aa861e5a40b443b1067f546d61e Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Fri, 20 Jun 2025 18:34:59 +0200 Subject: [PATCH] Chore: Remove limit as '0' (#107040) remove limit as '0' --- packages/grafana-prometheus/src/datasource.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-prometheus/src/datasource.ts b/packages/grafana-prometheus/src/datasource.ts index f19dc0b86f7..39d1b56d4f5 100644 --- a/packages/grafana-prometheus/src/datasource.ts +++ b/packages/grafana-prometheus/src/datasource.ts @@ -526,7 +526,7 @@ export class PrometheusDatasource const match = this.extractResourceMatcher(options.queries ?? [], options.filters); - let labelKeys: string[] = await this.languageProvider.queryLabelKeys(options.timeRange, match, '0'); + let labelKeys: string[] = await this.languageProvider.queryLabelKeys(options.timeRange, match); // filter out already used labels return labelKeys @@ -557,7 +557,7 @@ export class PrometheusDatasource const match = this.extractResourceMatcher(options.queries ?? [], options.filters); - return (await this.languageProvider.queryLabelValues(options.timeRange, options.key, match, '0')).map((v) => ({ + return (await this.languageProvider.queryLabelValues(options.timeRange, options.key, match)).map((v) => ({ value: v, text: v, }));