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