* Remove limit on metrics
* Remove unused variable
(cherry picked from commit 46f922fe1a)
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
co-authored by
Ivana Huckova
parent
83e58575ef
commit
3cc055f59c
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user