mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Remove autocomplete limit for metrics (#39363)
* Remove limit on metrics * Remove unused variable
This commit is contained in:
parent
4a11d0dab9
commit
46f922fe1a
@ -8,7 +8,6 @@ import { CompletionItem, CompletionItemGroup, SearchFunctionType, TypeaheadInput
|
||||
import {
|
||||
addLimitInfo,
|
||||
fixSummariesMetadata,
|
||||
limitSuggestions,
|
||||
parseSelector,
|
||||
processHistogramLabels,
|
||||
processLabels,
|
||||
@ -239,10 +238,9 @@ export default class PromQlLanguageProvider extends LanguageProvider {
|
||||
});
|
||||
|
||||
if (metrics && metrics.length) {
|
||||
const limitInfo = addLimitInfo(metrics);
|
||||
suggestions.push({
|
||||
label: `Metrics${limitInfo}`,
|
||||
items: limitSuggestions(metrics).map((m) => addMetricsMetadata(m, metricsMetadata)),
|
||||
label: 'Metrics',
|
||||
items: metrics.map((m) => addMetricsMetadata(m, metricsMetadata)),
|
||||
searchFunctionType: SearchFunctionType.Fuzzy,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user