2017-12-20 05:33:33 -06:00
|
|
|
import { GraphiteDatasource } from './datasource';
|
|
|
|
import { GraphiteQueryCtrl } from './query_ctrl';
|
2019-11-27 17:45:35 -06:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
|
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
2016-02-02 05:52:43 -06:00
|
|
|
|
2016-02-02 11:16:30 -06:00
|
|
|
class AnnotationsQueryCtrl {
|
2017-12-20 05:33:33 -06:00
|
|
|
static templateUrl = 'partials/annotations.editor.html';
|
2016-02-02 11:16:30 -06:00
|
|
|
}
|
2016-02-02 08:15:20 -06:00
|
|
|
|
2019-11-27 17:45:35 -06:00
|
|
|
export const plugin = new DataSourcePlugin(GraphiteDatasource)
|
|
|
|
.setQueryCtrl(GraphiteQueryCtrl)
|
|
|
|
.setConfigEditor(ConfigEditor)
|
|
|
|
.setAnnotationQueryCtrl(AnnotationsQueryCtrl);
|