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

remove limit as '0'
pull/107038/head^2
ismail simsek 7 days ago committed by GitHub
parent a76057cedb
commit f27098a976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/grafana-prometheus/src/datasource.ts

@ -526,7 +526,7 @@ export class PrometheusDatasource
const match = this.extractResourceMatcher(options.queries ?? [], options.filters); 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 // filter out already used labels
return labelKeys return labelKeys
@ -557,7 +557,7 @@ export class PrometheusDatasource
const match = this.extractResourceMatcher(options.queries ?? [], options.filters); 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, value: v,
text: v, text: v,
})); }));

Loading…
Cancel
Save