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, }));