Chore: Remove limit as '0' (#107040)

remove limit as '0'
This commit is contained in:
ismail simsek
2025-06-20 16:34:59 +00:00
committed by GitHub
parent a76057cedb
commit f27098a976
@@ -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,
}));