2017-12-20 12:33:33 +01:00
|
|
|
import InfluxDatasource from './datasource';
|
|
|
|
|
import { InfluxQueryCtrl } from './query_ctrl';
|
2019-06-12 14:01:48 +01:00
|
|
|
import InfluxStartPage from './components/InfluxStartPage';
|
2019-10-31 10:48:05 +01:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2019-11-18 03:39:58 -05:00
|
|
|
import ConfigEditor from './components/ConfigEditor';
|
2020-09-03 14:11:39 -07:00
|
|
|
import VariableQueryEditor from './components/VariableQueryEditor';
|
2016-02-02 22:58:37 +01:00
|
|
|
|
2020-06-22 13:03:34 -07:00
|
|
|
// This adds a directive that is used in the query editor
|
|
|
|
|
import './components/FluxQueryEditor';
|
|
|
|
|
|
2016-02-02 22:58:37 +01:00
|
|
|
class InfluxAnnotationsQueryCtrl {
|
2017-12-20 12:33:33 +01:00
|
|
|
static templateUrl = 'partials/annotations.editor.html';
|
2016-02-02 22:58:37 +01:00
|
|
|
}
|
|
|
|
|
|
2019-06-10 14:39:53 +02:00
|
|
|
export const plugin = new DataSourcePlugin(InfluxDatasource)
|
2019-11-18 03:39:58 -05:00
|
|
|
.setConfigEditor(ConfigEditor)
|
2019-06-10 14:39:53 +02:00
|
|
|
.setQueryCtrl(InfluxQueryCtrl)
|
|
|
|
|
.setAnnotationQueryCtrl(InfluxAnnotationsQueryCtrl)
|
2020-09-03 14:11:39 -07:00
|
|
|
.setVariableQueryEditor(VariableQueryEditor)
|
2019-06-12 14:01:48 +01:00
|
|
|
.setExploreStartPage(InfluxStartPage);
|