Commit 38b71bf3 by Raul Simiciuc

adding counterMax option to opentsdb

parent 920689b8
...@@ -89,6 +89,19 @@ ...@@ -89,6 +89,19 @@
ng-model="target.isCounter" ng-model="target.isCounter"
ng-change="targetBlur()"> ng-change="targetBlur()">
</li> </li>
<li class="grafana-target-segment" ng-hide="!target.isCounter">
Counter Max:
</li>
<li ng-hide="!target.isCounter">
<input type="text"
class="grafana-target-segment-input input-medium"
ng-disabled="!target.shouldComputeRate"
ng-model="target.counterMax"
spellcheck='false'
placeholder="Counter max value"
ng-blur="targetBlur()"
/>
</li>
<li class="grafana-target-segment"> <li class="grafana-target-segment">
Alias: Alias:
</li> </li>
......
...@@ -136,6 +136,10 @@ function (angular, _, kbn) { ...@@ -136,6 +136,10 @@ function (angular, _, kbn) {
query.rateOptions = { query.rateOptions = {
counter: !!target.isCounter counter: !!target.isCounter
}; };
if (target.counterMax && target.counterMax.length) {
query.rateOptions['counterMax'] = parseInt(target.counterMax);
}
} }
if (target.shouldDownsample) { if (target.shouldDownsample) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment