Fix grafana endpoint
Change-Id: I2a7cd325e1232178a31f4b3b1a1551b48d395ce8
This commit is contained in:
parent
f82d8e18f9
commit
41c28d0cb8
@ -3,13 +3,13 @@
|
||||
angular.module('bansho.grafana', [])
|
||||
.service('iframeUrl', function () {
|
||||
var createIFrameUrl = function (templateName, host_name, service_description, metric) {
|
||||
return '/grafana/dashboard-solo/db/' + templateName + '?' +
|
||||
'panelId=' + '1' +
|
||||
'&fullscreen&from=' + 'now-6h' +
|
||||
'&to=' + 'now' +
|
||||
'&var-metric1=' + metric +
|
||||
'&var-host_name=' + host_name +
|
||||
'&var-service_description=' + service_description;
|
||||
return 'grafana/dashboard-solo/db/' + templateName + '?' +
|
||||
'panelId=' + '1' +
|
||||
'&fullscreen&from=' + 'now-6h' +
|
||||
'&to=' + 'now' +
|
||||
'&var-metric1=' + metric +
|
||||
'&var-host_name=' + host_name +
|
||||
'&var-service_description=' + service_description;
|
||||
};
|
||||
|
||||
var getIFrameUrl = function (metric, host_name, service_description) {
|
||||
@ -20,4 +20,4 @@ angular.module('bansho.grafana', [])
|
||||
return {
|
||||
getIFrameUrl: getIFrameUrl
|
||||
};
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user