Allow to use names with dot in template queries, fixes #254

This commit is contained in:
Alexander Zobnin
2017-06-08 16:28:29 +03:00
parent 201c969e13
commit f04e19db69
8 changed files with 84 additions and 20 deletions

View File

@@ -302,7 +302,7 @@ class ZabbixAPIDatasource {
let parts = [];
// Split query. Query structure: group.host.app.item
_.each(query.split('.'), part => {
_.each(utils.splitTemplateQuery(query), part => {
part = this.replaceTemplateVars(part, {});
// Replace wildcard to regex