2015-08-17 02:52:30 +08:00
|
|
|
define([
|
|
|
|
|
'angular',
|
2016-01-10 02:03:03 +08:00
|
|
|
'./datasource',
|
2015-08-17 02:52:30 +08:00
|
|
|
],
|
2016-01-10 02:03:03 +08:00
|
|
|
function (angular, GraphiteDatasource) {
|
2015-08-17 02:52:30 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
var module = angular.module('grafana.directives');
|
|
|
|
|
|
|
|
|
|
module.directive('metricQueryEditorGraphite', function() {
|
|
|
|
|
return {controller: 'GraphiteQueryCtrl', templateUrl: 'app/plugins/datasource/graphite/partials/query.editor.html'};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.directive('metricQueryOptionsGraphite', function() {
|
|
|
|
|
return {templateUrl: 'app/plugins/datasource/graphite/partials/query.options.html'};
|
|
|
|
|
});
|
|
|
|
|
|
2016-01-14 19:35:31 +08:00
|
|
|
function annotationsQueryEditor() {
|
2015-08-17 02:52:30 +08:00
|
|
|
return {templateUrl: 'app/plugins/datasource/graphite/partials/annotations.editor.html'};
|
2016-01-14 19:35:31 +08:00
|
|
|
}
|
2015-08-17 02:52:30 +08:00
|
|
|
|
2016-01-14 19:35:31 +08:00
|
|
|
function configView() {
|
2016-01-10 06:34:20 +08:00
|
|
|
return {templateUrl: 'app/plugins/datasource/graphite/partials/config.html'};
|
2016-01-14 19:35:31 +08:00
|
|
|
}
|
2016-01-10 06:34:20 +08:00
|
|
|
|
2016-01-10 02:03:03 +08:00
|
|
|
return {
|
|
|
|
|
Datasource: GraphiteDatasource,
|
2016-01-14 19:35:31 +08:00
|
|
|
configView: configView,
|
|
|
|
|
annotationsQueryEditor: annotationsQueryEditor,
|
2016-01-10 02:03:03 +08:00
|
|
|
};
|
2015-08-17 02:52:30 +08:00
|
|
|
});
|