grafana/public/app/plugins/datasource/graphite/module.ts
ismail simsek 0a664faeeb
Graphite: Introduce new query types in annotation editor (#52341)
* Fix comment lines

* Introduce graphite variable editor

* Render results differently based on queryType

* Add comments and fallback values

* Unit tests for different type of graphite queries

* Use metrics/expand endpoint to retrieve metric names
2022-07-26 18:30:23 +02:00

19 lines
768 B
TypeScript

import { DataSourcePlugin } from '@grafana/data';
import { GraphiteQueryEditor } from './components/GraphiteQueryEditor';
import { GraphiteVariableEditor } from './components/GraphiteVariableEditor';
import { MetricTankMetaInspector } from './components/MetricTankMetaInspector';
import { ConfigEditor } from './configuration/ConfigEditor';
import { GraphiteDatasource } from './datasource';
class AnnotationsQueryCtrl {
static templateUrl = 'partials/annotations.editor.html';
}
export const plugin = new DataSourcePlugin(GraphiteDatasource)
.setQueryEditor(GraphiteQueryEditor)
.setConfigEditor(ConfigEditor)
.setVariableQueryEditor(GraphiteVariableEditor)
.setMetadataInspector(MetricTankMetaInspector)
.setAnnotationQueryCtrl(AnnotationsQueryCtrl);