mirror of https://github.com/grafana/grafana
parent
6fae264222
commit
a233570777
@ -1,24 +1,23 @@ |
||||
define([ |
||||
'angular', |
||||
'./datasource', |
||||
], |
||||
function (angular, OpenTsDatasource) { |
||||
function (OpenTsDatasource) { |
||||
'use strict'; |
||||
|
||||
var module = angular.module('grafana.directives'); |
||||
|
||||
module.directive('metricQueryEditorOpentsdb', function() { |
||||
function metricsQueryEditor() { |
||||
return { |
||||
controller: 'OpenTSDBQueryCtrl', |
||||
templateUrl: 'app/plugins/datasource/opentsdb/partials/query.editor.html', |
||||
}; |
||||
}); |
||||
} |
||||
|
||||
module.directive('datasourceCustomSettingsViewOpentsdb', function() { |
||||
function configView() { |
||||
return {templateUrl: 'app/plugins/datasource/opentsdb/partials/config.html'}; |
||||
}); |
||||
} |
||||
|
||||
return { |
||||
Datasource: OpenTsDatasource |
||||
Datasource: OpenTsDatasource, |
||||
metricsQueryEditor: metricsQueryEditor, |
||||
configView: configView, |
||||
}; |
||||
}); |
||||
|
@ -1,21 +1,20 @@ |
||||
define([ |
||||
'angular', |
||||
'./datasource', |
||||
], |
||||
function (angular, PromDatasource) { |
||||
function (PromDatasource) { |
||||
'use strict'; |
||||
|
||||
var module = angular.module('grafana.directives'); |
||||
|
||||
module.directive('metricQueryEditorPrometheus', function() { |
||||
function metricsQueryEditor() { |
||||
return {controller: 'PrometheusQueryCtrl', templateUrl: 'app/plugins/datasource/prometheus/partials/query.editor.html'}; |
||||
}); |
||||
} |
||||
|
||||
module.directive('datasourceCustomSettingsViewPrometheus', function() { |
||||
function configView() { |
||||
return {templateUrl: 'app/plugins/datasource/prometheus/partials/config.html'}; |
||||
}); |
||||
} |
||||
|
||||
return { |
||||
Datasource: PromDatasource |
||||
Datasource: PromDatasource, |
||||
metricsQueryEditor: metricsQueryEditor, |
||||
configView: configView, |
||||
}; |
||||
}); |
||||
|
Loading…
Reference in new issue