Annotations: Add annotations support to Loki (#18949)

This commit is contained in:
Andrej Ocenas
2019-09-10 11:04:44 +02:00
committed by GitHub
parent eccc6adfde
commit 0e3e874eee
12 changed files with 240 additions and 15 deletions

View File

@@ -12,6 +12,7 @@ import { FunctionEditor } from 'app/plugins/datasource/graphite/FunctionEditor';
import { SearchField } from './components/search/SearchField';
import { GraphContextMenu } from 'app/plugins/panel/graph/GraphContextMenu';
import ReactProfileWrapper from 'app/features/profile/ReactProfileWrapper';
import { LokiAnnotationsQueryEditor } from '../plugins/datasource/loki/components/AnnotationsQueryEditor';
export function registerAngularDirectives() {
react2AngularDirective('sidemenu', SideMenu, []);
@@ -102,4 +103,10 @@ export function registerAngularDirectives() {
]);
react2AngularDirective('reactProfileWrapper', ReactProfileWrapper, []);
react2AngularDirective('lokiAnnotationsQueryEditor', LokiAnnotationsQueryEditor, [
'expr',
'onChange',
['datasource', { watchDepth: 'reference' }],
]);
}