mirror of https://github.com/grafana/grafana.git
renamed graphite panel to graph
This commit is contained in:
parent
525c4d529e
commit
6e2348d2b1
|
@ -1,4 +1,6 @@
|
||||||
vNext
|
# vNext
|
||||||
|
|
||||||
|
#### New features or improvements
|
||||||
- New Y-axis formater for metric values that represent seconds (Issue #427) - thx @jippi
|
- New Y-axis formater for metric values that represent seconds (Issue #427) - thx @jippi
|
||||||
- Allow special characters in serie names (influxdb datasource), PR #390 - thx @majst01
|
- Allow special characters in serie names (influxdb datasource), PR #390 - thx @majst01
|
||||||
- Refactoring of filterSrv (Issue #428), thx @Tetha
|
- Refactoring of filterSrv (Issue #428), thx @Tetha
|
||||||
|
@ -12,7 +14,10 @@ vNext
|
||||||
- Improvement to InfluxDB query editor and function/value column selection (Issue #473)
|
- Improvement to InfluxDB query editor and function/value column selection (Issue #473)
|
||||||
- Initial support for filtering (templated queries) for InfluxDB (PR #375) - thx @mavimo
|
- Initial support for filtering (templated queries) for InfluxDB (PR #375) - thx @mavimo
|
||||||
|
|
||||||
# Fixes
|
#### Changes
|
||||||
|
- Graphite panel is now renamed graph (Existing dashboards will still work)
|
||||||
|
|
||||||
|
#### Fixes
|
||||||
- Filter option loading when having muliple nested filters now works better.
|
- Filter option loading when having muliple nested filters now works better.
|
||||||
Options are now reloaded correctly and there are no multiple renders/refresh inbetween (#447),
|
Options are now reloaded correctly and there are no multiple renders/refresh inbetween (#447),
|
||||||
After an option is changed and a nested template param is also reloaded, if the current value
|
After an option is changed and a nested template param is also reloaded, if the current value
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div ng-controller='graphite'
|
<div ng-controller='graph'
|
||||||
ng-init="init()"
|
ng-init="init()"
|
||||||
style="min-height:{{panel.height || row.height}}"
|
style="min-height:{{panel.height || row.height}}"
|
||||||
ng-class="{'panel-fullscreen': fullscreen}">
|
ng-class="{'panel-fullscreen': fullscreen}">
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-if="panel.legend" class="grafana-legend-container">
|
<div ng-if="panel.legend" class="grafana-legend-container">
|
||||||
<div ng-include="'app/panels/graphite/legend.html'"></div>
|
<div ng-include="'app/panels/graph/legend.html'"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
|
|
@ -33,10 +33,10 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var module = angular.module('kibana.panels.graphite', []);
|
var module = angular.module('kibana.panels.graph', []);
|
||||||
app.useModule(module);
|
app.useModule(module);
|
||||||
|
|
||||||
module.controller('graphite', function($scope, $rootScope, datasourceSrv, $timeout, annotationsSrv) {
|
module.controller('graph', function($scope, $rootScope, datasourceSrv, $timeout, annotationsSrv) {
|
||||||
|
|
||||||
$scope.panelMeta = {
|
$scope.panelMeta = {
|
||||||
modals : [],
|
modals : [],
|
||||||
|
@ -52,11 +52,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title:'Axes & Grid',
|
title:'Axes & Grid',
|
||||||
src:'app/panels/graphite/axisEditor.html'
|
src:'app/panels/graph/axisEditor.html'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title:'Display Styles',
|
title:'Display Styles',
|
||||||
src:'app/panels/graphite/styleEditor.html'
|
src:'app/panels/graph/styleEditor.html'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
fullscreenEdit: true,
|
fullscreenEdit: true,
|
|
@ -138,6 +138,14 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_.each(dashboard.rows, function(row) {
|
||||||
|
_.each(row.panels, function(panel) {
|
||||||
|
if (panel.type === 'graphite') {
|
||||||
|
panel.type = 'graph';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
return dashboard;
|
return dashboard;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ function (Settings) {
|
||||||
|
|
||||||
panel_names: [
|
panel_names: [
|
||||||
'text',
|
'text',
|
||||||
'graphite'
|
'graph'
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue