mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* 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
19 lines
768 B
TypeScript
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);
|