module.ts 698 B

123456789101112131415161718
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import ConfigEditor from './components/ConfigEditor';
  3. import InfluxStartPage from './components/InfluxStartPage';
  4. import { QueryEditor } from './components/QueryEditor';
  5. import VariableQueryEditor from './components/VariableQueryEditor';
  6. import InfluxDatasource from './datasource';
  7. class InfluxAnnotationsQueryCtrl {
  8. static templateUrl = 'partials/annotations.editor.html';
  9. }
  10. export const plugin = new DataSourcePlugin(InfluxDatasource)
  11. .setConfigEditor(ConfigEditor)
  12. .setQueryEditor(QueryEditor)
  13. .setAnnotationQueryCtrl(InfluxAnnotationsQueryCtrl)
  14. .setVariableQueryEditor(VariableQueryEditor)
  15. .setQueryEditorHelp(InfluxStartPage);