module.ts 582 B

12345678910111213
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { LokiAnnotationsQueryCtrl } from './LokiAnnotationsQueryCtrl';
  3. import LokiCheatSheet from './components/LokiCheatSheet';
  4. import LokiQueryEditorByApp from './components/LokiQueryEditorByApp';
  5. import { ConfigEditor } from './configuration/ConfigEditor';
  6. import { LokiDatasource } from './datasource';
  7. export const plugin = new DataSourcePlugin(LokiDatasource)
  8. .setQueryEditor(LokiQueryEditorByApp)
  9. .setConfigEditor(ConfigEditor)
  10. .setQueryEditorHelp(LokiCheatSheet)
  11. .setAnnotationQueryCtrl(LokiAnnotationsQueryCtrl);