From 3793de5ed9a10bbab28c1ebe4fb3c18f96c0d163 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sun, 16 Aug 2015 13:48:02 +0300 Subject: [PATCH] iss #61 - Support templated variables in annotations. --- zabbix/datasource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix/datasource.js b/zabbix/datasource.js index a036043..23060e6 100644 --- a/zabbix/datasource.js +++ b/zabbix/datasource.js @@ -307,10 +307,10 @@ function (angular, _, kbn) { expandDescription: true }; if (annotation.host) { - params.host = annotation.host; + params.host = templateSrv.replace(annotation.host); } else if (annotation.group) { - params.group = annotation.group; + params.group = templateSrv.replace(annotation.group); } return this.zabbixAPI.performZabbixAPIRequest('trigger.get', params)