mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Correctly format multi values variables in queries (#26896)
This commit is contained in:
@@ -159,7 +159,7 @@ export class PrometheusDatasource extends DataSourceApi<PromQuery, PromOptions>
|
||||
}
|
||||
|
||||
const escapedValues = value.map(val => prometheusSpecialRegexEscape(val));
|
||||
return escapedValues.join('|');
|
||||
return '(' + escapedValues.join('|') + ')';
|
||||
}
|
||||
|
||||
targetContainsTemplate(target: PromQuery) {
|
||||
|
||||
Reference in New Issue
Block a user