mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 11:54:20 +08:00
Explore: Match queries that are longer than defined Graphite/Loki mapping (#34003)
This commit is contained in:
@ -49,7 +49,7 @@ function fromGraphite(graphiteQuery: GraphiteQueryModel, config: GraphiteToLokiQ
|
||||
});
|
||||
} else {
|
||||
const targetNodes = graphiteQuery.segments.map((segment) => segment.value);
|
||||
let mappings = config.mappings.filter((mapping) => mapping.matchers.length === targetNodes.length);
|
||||
let mappings = config.mappings.filter((mapping) => mapping.matchers.length <= targetNodes.length);
|
||||
|
||||
for (let mapping of mappings) {
|
||||
const matchers = mapping.matchers.concat();
|
||||
|
Reference in New Issue
Block a user