2019-10-31 10:48:05 +01:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2022-04-22 14:33:13 +01:00
|
|
|
|
2019-11-18 03:39:58 -05:00
|
|
|
import ConfigEditor from './components/ConfigEditor';
|
2022-04-22 14:33:13 +01:00
|
|
|
import InfluxStartPage from './components/InfluxStartPage';
|
|
|
|
|
import { QueryEditor } from './components/QueryEditor';
|
2020-09-03 14:11:39 -07:00
|
|
|
import VariableQueryEditor from './components/VariableQueryEditor';
|
2022-04-22 14:33:13 +01:00
|
|
|
import InfluxDatasource from './datasource';
|
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)
|
2021-05-11 08:15:44 +02:00
|
|
|
.setQueryEditor(QueryEditor)
|
2020-09-03 14:11:39 -07:00
|
|
|
.setVariableQueryEditor(VariableQueryEditor)
|
2021-01-19 22:52:09 +00:00
|
|
|
.setQueryEditorHelp(InfluxStartPage);
|