Commit 38f4cfb7 by Torkel Ödegaard

Merge branch 'v2.6.x'

parents 4cc06ad7 aca9d396
# 2.6.1
### New Features
* **Elasticsearch**: Support for derivative unit option, closes [#3512](https://github.com/grafana/grafana/issues/3512)
# 2.6.0 (2015-12-14)
### New Features
......
......@@ -82,7 +82,11 @@ function (_, queryDef) {
value = bucket[metric.id];
if (value !== undefined) {
newSeries.datapoints.push([value.value, bucket.key]);
if (value.normalized_value) {
newSeries.datapoints.push([value.normalized_value, bucket.key]);
} else {
newSeries.datapoints.push([value.value, bucket.key]);
}
}
}
......
......@@ -39,6 +39,18 @@
<div class="tight-form" ng-if="showOptions">
<div class="tight-form-inner-box tight-form-container">
<div class="tight-form" ng-if="agg.type === 'derivative'">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 75px;">
Unit
</li>
<li>
<input type="text" class="input-medium tight-form-input last" ng-model="agg.settings.unit" ng-blur="onChangeInternal()" spellcheck='false'>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="tight-form" ng-if="agg.type === 'moving_avg'">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 75px;">
......
......@@ -73,7 +73,9 @@ function (_) {
{text: 'window', default: 5},
{text: 'model', default: 'simple'}
],
'derivative': []
'derivative': [
{text: 'unit', default: undefined},
]
},
getMetricAggTypes: function(esVersion) {
......
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