You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
995 B
20 lines
995 B
import { DataSourcePlugin } from '@grafana/data';
|
|
import { ConfigEditor } from './components/ConfigEditor';
|
|
import { CloudWatchDatasource } from './datasource';
|
|
import { CloudWatchAnnotationsQueryCtrl } from './annotations_query_ctrl';
|
|
import { CloudWatchJsonData, CloudWatchQuery } from './types';
|
|
import { CloudWatchLogsQueryEditor } from './components/LogsQueryEditor';
|
|
import { PanelQueryEditor } from './components/PanelQueryEditor';
|
|
import { MetaInspector } from './components/MetaInspector';
|
|
import LogsCheatSheet from './components/LogsCheatSheet';
|
|
|
|
export const plugin = new DataSourcePlugin<CloudWatchDatasource, CloudWatchQuery, CloudWatchJsonData>(
|
|
CloudWatchDatasource
|
|
)
|
|
.setQueryEditorHelp(LogsCheatSheet)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setQueryEditor(PanelQueryEditor)
|
|
.setMetadataInspector(MetaInspector)
|
|
.setExploreMetricsQueryField(PanelQueryEditor)
|
|
.setExploreLogsQueryField(CloudWatchLogsQueryEditor)
|
|
.setAnnotationQueryCtrl(CloudWatchAnnotationsQueryCtrl);
|
|
|