mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Removes "Metrics"/"Logs" mode switcher from Explore, allowing for both metrics and logs queries at the same time. Co-authored-by: kay delaney <kay@grafana.com>
14 lines
494 B
TypeScript
14 lines
494 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { ElasticDatasource } from './datasource';
|
|
import { ElasticQueryCtrl } from './query_ctrl';
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
|
|
|
class ElasticAnnotationsQueryCtrl {
|
|
static templateUrl = 'partials/annotations.editor.html';
|
|
}
|
|
|
|
export const plugin = new DataSourcePlugin(ElasticDatasource)
|
|
.setQueryCtrl(ElasticQueryCtrl)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setAnnotationQueryCtrl(ElasticAnnotationsQueryCtrl);
|