mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
added support for maxDataPoints
This commit is contained in:
parent
24dd2fa166
commit
b4cd48a79c
18
grafana.sublime-project
Normal file
18
grafana.sublime-project
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"folders":
|
||||
[
|
||||
{
|
||||
"follow_symlinks": true,
|
||||
"path": ".",
|
||||
"folder_exclude_patterns": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
],
|
||||
"settings":
|
||||
{
|
||||
"tab_size": 2,
|
||||
"translate_tabs_to_spaces": true,
|
||||
"trim_trailing_white_space_on_save": true
|
||||
}
|
||||
}
|
531
grafana.sublime-workspace
Normal file
531
grafana.sublime-workspace
Normal file
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<input type="text" ng-model="target.target" class="input-large" style="width:95%" ng-model-onblur ng-change="get_data()" />
|
||||
<i ng-click="panel.targets = _.without(panel.targets, target)" class="pointer icon-remove" style="position: relative; top: -5px; left: 5px;"></i>
|
||||
<i ng-click="panel.targets = _.without(panel.targets, target)" class="pointer icon-remove" ng-change="get_data()" style="position: relative; top: -5px; left: 5px;"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -11,7 +11,7 @@ function ($, RQ, config) {
|
||||
raw = raw || false;
|
||||
var clean_options = [];
|
||||
//var internal_options = ['_t'];
|
||||
var graphite_options = ['target', 'targets', 'from', 'until', 'rawData', 'format'];
|
||||
var graphite_options = ['target', 'targets', 'from', 'until', 'rawData', 'format', 'maxDataPoints'];
|
||||
var graphite_png_options = ['areaMode', 'width', 'height', 'template', 'margin', 'bgcolor',
|
||||
'fgcolor', 'fontName', 'fontSize', 'fontBold', 'fontItalic',
|
||||
'yMin', 'yMax', 'colorList', 'title', 'vtitle', 'lineMode',
|
||||
@ -55,7 +55,6 @@ function ($, RQ, config) {
|
||||
clean_options.push(key + "=" + encodeURIComponent(value));
|
||||
}
|
||||
});
|
||||
|
||||
return clean_options;
|
||||
}
|
||||
|
||||
@ -65,7 +64,8 @@ function ($, RQ, config) {
|
||||
var graphOptions = {
|
||||
from: $.plot.formatDate(options.range.from, '%H%:%M_%Y%m%d'),
|
||||
until: $.plot.formatDate(options.range.to, '%H%:%M_%Y%m%d'),
|
||||
targets: options.targets
|
||||
targets: options.targets,
|
||||
maxDataPoints: options.maxDataPoints
|
||||
}
|
||||
|
||||
var graphiteParameters = build_graphite_options(graphOptions, true);
|
||||
|
@ -103,7 +103,9 @@
|
||||
</span>
|
||||
</form>
|
||||
<center><img ng-show='panel.loading && _.isUndefined(data)' src="img/load_big.gif"></center>
|
||||
|
||||
<div histogram-chart class="pointer histogram-chart" params="{{panel}}"></div>
|
||||
|
||||
<span ng-show="panel.legend" ng-repeat='series in data' class="histogram-legend">
|
||||
<i class='icon-circle' ng-style="{color: series.info.color}"></i>
|
||||
<span class='small histogram-legend-item'>
|
||||
|
@ -298,7 +298,8 @@ function (angular, app, $, _, kbn, moment, timeSeries, graphiteSrv) {
|
||||
|
||||
var graphiteLoadOptions = {
|
||||
range: range,
|
||||
targets: $scope.panel.targets
|
||||
targets: $scope.panel.targets,
|
||||
maxDataPoints: $scope.panel.span * 100
|
||||
};
|
||||
|
||||
var result = RQ.sequence([
|
||||
|
Loading…
Reference in New Issue
Block a user