From ebf0bd5fc95a707c45b4419b0a8f4ef43851695c Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Thu, 31 Dec 2015 15:57:15 +0900 Subject: [PATCH] fix end time of Prometheus link --- public/app/plugins/datasource/prometheus/query_ctrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/prometheus/query_ctrl.js b/public/app/plugins/datasource/prometheus/query_ctrl.js index 0b0377bf81b..83d92ae74a2 100644 --- a/public/app/plugins/datasource/prometheus/query_ctrl.js +++ b/public/app/plugins/datasource/prometheus/query_ctrl.js @@ -46,7 +46,7 @@ function (angular, _) { $scope.linkToPrometheus = function() { var range = Math.ceil(($scope.range.to.valueOf() - $scope.range.from.valueOf()) / 1000); - var endTime = $scope.range.to.utc().format('YYYY-MM-DD HH:MM'); + var endTime = $scope.range.to.utc().format('YYYY-MM-DD HH:mm'); var expr = { expr: templateSrv.replace($scope.target.expr, $scope.panel.scopedVars), range_input: range + 's',