diff --git a/src/app/partials/opentsdb/editor.html b/src/app/partials/opentsdb/editor.html index 4c12ac09b87..51a575d933c 100644 --- a/src/app/partials/opentsdb/editor.html +++ b/src/app/partials/opentsdb/editor.html @@ -102,6 +102,19 @@ ng-blur="targetBlur()" /> +
  • + Counter Reset Value: +
  • +
  • + +
  • Alias:
  • diff --git a/src/app/services/opentsdb/opentsdbDatasource.js b/src/app/services/opentsdb/opentsdbDatasource.js index a497d23c119..0cf3e5f1148 100644 --- a/src/app/services/opentsdb/opentsdbDatasource.js +++ b/src/app/services/opentsdb/opentsdbDatasource.js @@ -138,7 +138,11 @@ function (angular, _, kbn) { }; if (target.counterMax && target.counterMax.length) { - query.rateOptions['counterMax'] = parseInt(target.counterMax); + query.rateOptions.counterMax = parseInt(target.counterMax); + } + + if (target.counterResetValue && target.counterResetValue.length) { + query.rateOptions.resetValue = parseInt(target.counterResetValue); } }