Skip to content

[Lens] Query based event annotations #129299

@mbondyra

Description

@mbondyra

Phase 1

  1. Refactor drag and drop [Lens] Refactor drag and drop  #128506
  2. Reshape code for existing manual annotations:
    a. move fetching inside event_annotation plugin
    b. utilize event_annotation_group expression following the simplified expression call from the design doc:
kibana_context
| fetch_event_annotations group={
  event_annotation_group
    annotations={manual_event_annotation time=”2021-12-12 12:34” color=”red” text=”My manual annotation”}
    annotations={manual_event_annotation time=”2021-12-12 12:56” color=”green” text=”another manual annotation” icon=”checkmark”}
} 
  1. Introduce query-based event annotations
    a. add data view as a dependency for event annotation group
    b. display data view switcher in Lens UI
    c. add Query based annotations (built UI, fetching logic according to the spec doc, adding expression integration)
kibana_context
| fetch_event_annotations group={
  event_annotation_group
    dataView={loadDataView id=”1234”}
    annotations={manual_event_annotation time=”2021-12-12 12:34” color=”red” text=”My manual annotation”}
    annotations={manual_event_annotation time=”2021-12-12 12:56” color=”green” text=”another manual annotation” icon=”checkmark”}
    annotations={query_event_annotation filter={kql “status.code>500”} color=”red” text=”500 error” fields=”agent.raw” fields=”host.raw”}
} 
  1. Add TSVB -> Lens for annotations

Linking #62277

Metadata

Metadata

Labels

Feature:LensTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions