module.ts 471 B

1234567891011
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import PromCheatSheet from './components/PromCheatSheet';
  3. import PromQueryEditorByApp from './components/PromQueryEditorByApp';
  4. import { ConfigEditor } from './configuration/ConfigEditor';
  5. import { PrometheusDatasource } from './datasource';
  6. export const plugin = new DataSourcePlugin(PrometheusDatasource)
  7. .setQueryEditor(PromQueryEditorByApp)
  8. .setConfigEditor(ConfigEditor)
  9. .setQueryEditorHelp(PromCheatSheet);