2019-10-25 09:43:20 -05:00
|
|
|
import { DataSourcePlugin } from '@grafana/ui';
|
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';
|
2018-12-05 16:13:57 -06:00
|
|
|
import LokiQueryField from './components/LokiQueryField';
|
2019-01-23 10:44:22 -06:00
|
|
|
import LokiQueryEditor from './components/LokiQueryEditor';
|
2019-09-10 04:04:44 -05:00
|
|
|
import { LokiAnnotationsQueryCtrl } from './LokiAnnotationsQueryCtrl';
|
2019-10-25 09:43:20 -05:00
|
|
|
import { ConfigEditor } from './components/ConfigEditor';
|
2018-12-05 16:13:57 -06:00
|
|
|
|
2019-10-25 09:43:20 -05:00
|
|
|
export const plugin = new DataSourcePlugin(Datasource)
|
|
|
|
.setQueryEditor(LokiQueryEditor)
|
|
|
|
.setConfigEditor(ConfigEditor)
|
|
|
|
.setExploreQueryField(LokiQueryField)
|
|
|
|
.setExploreStartPage(LokiCheatSheet)
|
|
|
|
.setAnnotationQueryCtrl(LokiAnnotationsQueryCtrl);
|