2019-10-31 04:48:05 -05:00
|
|
|
import { DataSourcePlugin } from '@grafana/data';
|
2018-12-05 16:13:57 -06:00
|
|
|
import Datasource from './datasource';
|
|
|
|
|
2019-09-16 00:17:34 -05:00
|
|
|
import LokiCheatSheet from './components/LokiCheatSheet';
|
2020-02-06 06:34:52 -06:00
|
|
|
import LokiExploreQueryEditor from './components/LokiExploreQueryEditor';
|
2021-05-19 09:24:27 -05:00
|
|
|
import LokiQueryEditorByApp from './components/LokiQueryEditorByApp';
|
2019-09-10 04:04:44 -05:00
|
|
|
import { LokiAnnotationsQueryCtrl } from './LokiAnnotationsQueryCtrl';
|
2019-11-06 09:15:08 -06:00
|
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
2018-12-05 16:13:57 -06:00
|
|
|
|
2019-10-25 09:43:20 -05:00
|
|
|
export const plugin = new DataSourcePlugin(Datasource)
|
2021-05-19 09:24:27 -05:00
|
|
|
.setQueryEditor(LokiQueryEditorByApp)
|
2019-10-25 09:43:20 -05:00
|
|
|
.setConfigEditor(ConfigEditor)
|
2020-02-06 06:34:52 -06:00
|
|
|
.setExploreQueryField(LokiExploreQueryEditor)
|
2021-01-19 16:52:09 -06:00
|
|
|
.setQueryEditorHelp(LokiCheatSheet)
|
2019-10-25 09:43:20 -05:00
|
|
|
.setAnnotationQueryCtrl(LokiAnnotationsQueryCtrl);
|