mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Do not substitute #[A-Z] in graphite target when invalid ref (#5581)
* Do not substitute #[A-Z] in graphite target when invalid ref In the case where #[A-Z] does not reference another query, such as #J when there are only 2 queries, do not perform the substitution. This prevents the situation target name without a query labelled J (10th query). * Do not substitute #[A-Z] in graphite target when invalid ref In the case where #[A-Z] does not reference another query, such as #J when there are only 2 queries, do not perform the substitution. This prevents the situation target name without a query labelled J (10th query).
This commit is contained in:
committed by
Torkel Ödegaard
parent
82eebf64b6
commit
2c77f2231e
@@ -228,7 +228,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
||||
}
|
||||
|
||||
function nestedSeriesRegexReplacer(match, g1) {
|
||||
return targets[g1];
|
||||
return targets[g1] || match;
|
||||
}
|
||||
|
||||
for (i = 0; i < options.targets.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user