module.ts 640 B

12345678910111213141516
  1. import { DataSourcePlugin } from '@grafana/data';
  2. import { GraphiteQueryEditor } from './components/GraphiteQueryEditor';
  3. import { MetricTankMetaInspector } from './components/MetricTankMetaInspector';
  4. import { ConfigEditor } from './configuration/ConfigEditor';
  5. import { GraphiteDatasource } from './datasource';
  6. class AnnotationsQueryCtrl {
  7. static templateUrl = 'partials/annotations.editor.html';
  8. }
  9. export const plugin = new DataSourcePlugin(GraphiteDatasource)
  10. .setQueryEditor(GraphiteQueryEditor)
  11. .setConfigEditor(ConfigEditor)
  12. .setMetadataInspector(MetricTankMetaInspector)
  13. .setAnnotationQueryCtrl(AnnotationsQueryCtrl);