Procházet zdrojové kódy

Increased resolution for graphite datapoints (maxDataPoints), now equal to panel pixel width. (Closes #5)

Torkel Ödegaard před 11 roky
rodič
revize
0efafc50dc
2 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 2 0
      CHANGELOG.md
  2. 1 1
      src/app/panels/graphite/module.js

+ 2 - 0
CHANGELOG.md

@@ -2,6 +2,8 @@
 - InfluxDB enhancement: support for multiple hosts (with retries) and raw queries (Issue #318, thx @toddboom)
 - Added rounding for graphites from and to time range filters
   for very short absolute ranges (Issue #320)
+- Increased resolution for graphite datapoints (maxDataPoints), now equal to panel pixel width. (Closes #5)
+
 
 # 1.5.3 (2014-04-17)
 - Add support for async scripted dashboards (Issue #274)

+ 1 - 1
src/app/panels/graphite/module.js

@@ -230,7 +230,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
     $scope.updateTimeRange = function () {
       $scope.range = filterSrv.timeRange();
       $scope.rangeUnparsed = filterSrv.timeRange(false);
-      $scope.resolution = Math.ceil(($(window).width() * ($scope.panel.span / 12)) / 2);
+      $scope.resolution = Math.ceil($(window).width() * ($scope.panel.span / 12));
       $scope.interval = '10m';
 
       if ($scope.range) {