module.ts 743 B

1234567891011121314
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import CloudMonitoringCheatSheet from './components/CloudMonitoringCheatSheet';
  3. import { ConfigEditor } from './components/ConfigEditor/ConfigEditor';
  4. import { QueryEditor } from './components/QueryEditor';
  5. import { CloudMonitoringVariableQueryEditor } from './components/VariableQueryEditor';
  6. import CloudMonitoringDatasource from './datasource';
  7. import { CloudMonitoringQuery } from './types';
  8. export const plugin = new DataSourcePlugin<CloudMonitoringDatasource, CloudMonitoringQuery>(CloudMonitoringDatasource)
  9. .setQueryEditorHelp(CloudMonitoringCheatSheet)
  10. .setQueryEditor(QueryEditor)
  11. .setConfigEditor(ConfigEditor)
  12. .setVariableQueryEditor(CloudMonitoringVariableQueryEditor);