mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Loki: Fix using of Explore editor in Explore * Add test and remove Explore fields in module * Update tests
19 lines
725 B
TypeScript
19 lines
725 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { ANNOTATION_QUERY_STEP_DEFAULT, PrometheusDatasource } from './datasource';
|
|
|
|
import PromQueryEditorByApp from './components/PromQueryEditorByApp';
|
|
import PromCheatSheet from './components/PromCheatSheet';
|
|
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
|
|
|
class PrometheusAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
stepDefaultValuePlaceholder = ANNOTATION_QUERY_STEP_DEFAULT;
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(PrometheusDatasource)
|
|
.setQueryEditor(PromQueryEditorByApp)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setAnnotationQueryCtrl(PrometheusAnnotationsQueryCtrl)
|
|
.setQueryEditorHelp(PromCheatSheet);
|