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:
@@ -8,7 +8,6 @@ import { CompletionItem, CompletionItemGroup, SearchFunctionType, TypeaheadInput
|
|||||||
import {
|
import {
|
||||||
addLimitInfo,
|
addLimitInfo,
|
||||||
fixSummariesMetadata,
|
fixSummariesMetadata,
|
||||||
limitSuggestions,
|
|
||||||
parseSelector,
|
parseSelector,
|
||||||
processHistogramLabels,
|
processHistogramLabels,
|
||||||
processLabels,
|
processLabels,
|
||||||
@@ -239,10 +238,9 @@ export default class PromQlLanguageProvider extends LanguageProvider {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (metrics && metrics.length) {
|
if (metrics && metrics.length) {
|
||||||
const limitInfo = addLimitInfo(metrics);
|
|
||||||
suggestions.push({
|
suggestions.push({
|
||||||
label: `Metrics${limitInfo}`,
|
label: 'Metrics',
|
||||||
items: limitSuggestions(metrics).map((m) => addMetricsMetadata(m, metricsMetadata)),
|
items: metrics.map((m) => addMetricsMetadata(m, metricsMetadata)),
|
||||||
searchFunctionType: SearchFunctionType.Fuzzy,
|
searchFunctionType: SearchFunctionType.Fuzzy,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user