mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 05:22:49 +08:00
22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
define([
|
|
'angular',
|
|
'./datasource',
|
|
],
|
|
function (angular, PromDatasource) {
|
|
'use strict';
|
|
|
|
var module = angular.module('grafana.directives');
|
|
|
|
module.directive('metricQueryEditorPrometheus', function() {
|
|
return {controller: 'PrometheusQueryCtrl', templateUrl: 'app/plugins/datasource/prometheus/partials/query.editor.html'};
|
|
});
|
|
|
|
module.directive('datasourceCustomSettingsViewPrometheus', function() {
|
|
return {templateUrl: 'app/plugins/datasource/prometheus/partials/config.html'};
|
|
});
|
|
|
|
return {
|
|
Datasource: PromDatasource
|
|
};
|
|
});
|