Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch: Enable logs samples for metric queries #70258

Merged
merged 11 commits into from Jun 22, 2023

Conversation

gwdawson
Copy link
Member

What is this feature?

this enables log samples for elasticsearch metric queries

Which issue(s) does this PR fix?:

Fixes #62212

Special notes for your reviewer:

Screen.Recording.2023-06-16.at.17.05.37.mov

@github-actions
Copy link
Contributor

Backend code coverage report for PR #70258
No changes

@github-actions
Copy link
Contributor

github-actions bot commented Jun 16, 2023

Frontend code coverage report for PR #70258

Plugin Main PR Difference
elasticsearch 82.69% 82.88% .19%

@gwdawson gwdawson added this to the 10.1.x milestone Jun 16, 2023
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment bellow. Moreover, for date_histogram queries we should add prefered viz type to graph (both in frontend and backend). Doesn't have to be part of this PR, but should be a next step. 🙂

public/app/plugins/datasource/elasticsearch/datasource.ts Outdated Show resolved Hide resolved
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left couple more comments. 🙂 I am so happy to see logs sample in Elasticsearch 🚀 .

Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments bellow, but looks good!

gwdawson and others added 6 commits June 22, 2023 11:50
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job and :bufo-yay: for having logs sample for Es.

@ivanahuckova ivanahuckova changed the title Elastic: Enable logs samples for metric queries Elasticsearch: Enable logs samples for metric queries Jun 22, 2023
@gwdawson gwdawson merged commit d6e4f2a into main Jun 22, 2023
15 checks passed
@gwdawson gwdawson deleted the gareth/elastic-log-samples branch June 22, 2023 11:53
LudoVio pushed a commit that referenced this pull request Jun 26, 2023
* enable logs samples on elastic ds

* add tests for getSupplementaryQuery

* only display log samples for date_hostogram queries

* changes

* test

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* address feedback / tests

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
harisrozajac pushed a commit that referenced this pull request Jun 30, 2023
* enable logs samples on elastic ds

* add tests for getSupplementaryQuery

* only display log samples for date_hostogram queries

* changes

* test

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Update public/app/plugins/datasource/elasticsearch/datasource.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* address feedback / tests

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
@matyax matyax mentioned this pull request Jul 28, 2023
9 tasks
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elasticsearch: add support to logs sample
5 participants