fix end time of Prometheus link

This commit is contained in:
Mitsuhiro Tanda 2015-12-31 15:57:15 +09:00
parent be48caf59f
commit ebf0bd5fc9

View File

@ -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',