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

[Lens][Telemetry] Track Elasticsearch took time in Lens editor #192245

Merged
merged 8 commits into from
Sep 9, 2024

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Sep 6, 2024

Summary

This implements the requirement to separate ES query time from the time_to_data telemetry. It currently separates only the Elasticsearch took time available in the response and works only in the EBT performance journey for the Lens Editor implemented in #163412.

@markov00 markov00 added performance release_note:skip Skip the PR/issue when compiling release notes Feature:Lens labels Sep 6, 2024
@markov00 markov00 force-pushed the 2024_09_06-extract_es_took_time branch from d056529 to b3ff7fe Compare September 6, 2024 12:52
@markov00 markov00 marked this pull request as ready for review September 9, 2024 07:35
@markov00 markov00 requested a review from a team as a code owner September 9, 2024 07:35
@dej611 dej611 added the v8.16.0 label Sep 9, 2024
Copy link
Contributor

@dej611 dej611 left a comment

Choose a reason for hiding this comment

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

Approve it.
Left a nit code comment, but def not a blocker.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.5MB 1.5MB +292.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@markov00 markov00 merged commit 2c33e97 into elastic:main Sep 9, 2024
20 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Sep 9, 2024
@markov00 markov00 deleted the 2024_09_06-extract_es_took_time branch September 9, 2024 13:01
@thomasneirynck
Copy link
Contributor

thanks @markov00 !

I added some additional information here #189396 (comment).

Ideally, we can collect this metric in all contexts where Lens is rendered.

thomasneirynck added a commit that referenced this pull request Sep 20, 2024
## Summary

Similar to #192245, this adds
request-time to the Lens Embeddable. This would allow to track these
metrics anywhere where Lens is embedded.

This is particularly important for Lens embedded in a Dashboard since
all performance journeys are written against Dashboards.

### Checklist

Delete any items that are not applicable to this PR.

- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2024
## Summary

Similar to elastic#192245, this adds
request-time to the Lens Embeddable. This would allow to track these
metrics anywhere where Lens is embedded.

This is particularly important for Lens embedded in a Dashboard since
all performance journeys are written against Dashboards.

### Checklist

Delete any items that are not applicable to this PR.

- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
(cherry picked from commit 682afb7)
kibanamachine added a commit that referenced this pull request Sep 23, 2024
… (#193740)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens] Add ES-request time telemetry to Lens embeddable
(#192743)](#192743)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Thomas
Neirynck","email":"thomas@elastic.co"},"sourceCommit":{"committedDate":"2024-09-20T13:24:19Z","message":"[Lens]
Add ES-request time telemetry to Lens embeddable (#192743)\n\n##
Summary\r\n\r\nSimilar to #192245,
this adds\r\nrequest-time to the Lens Embeddable. This would allow to
track these\r\nmetrics anywhere where Lens is embedded.\r\n\r\nThis is
particularly important for Lens embedded in a Dashboard since\r\nall
performance journeys are written against Dashboards.\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
For maintainers\r\n\r\n- [x] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Marco Vettorello
<vettorello.marco@gmail.com>","sha":"682afb7d8cf2712c2a4d3c64820e4baf2af100bf","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","telemetry","v8.16.0","backport:version"],"title":"[Lens]
Add ES-request time telemetry to Lens
embeddable","number":192743,"url":"https://github.com/elastic/kibana/pull/192743","mergeCommit":{"message":"[Lens]
Add ES-request time telemetry to Lens embeddable (#192743)\n\n##
Summary\r\n\r\nSimilar to #192245,
this adds\r\nrequest-time to the Lens Embeddable. This would allow to
track these\r\nmetrics anywhere where Lens is embedded.\r\n\r\nThis is
particularly important for Lens embedded in a Dashboard since\r\nall
performance journeys are written against Dashboards.\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
For maintainers\r\n\r\n- [x] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Marco Vettorello
<vettorello.marco@gmail.com>","sha":"682afb7d8cf2712c2a4d3c64820e4baf2af100bf"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192743","number":192743,"mergeCommit":{"message":"[Lens]
Add ES-request time telemetry to Lens embeddable (#192743)\n\n##
Summary\r\n\r\nSimilar to #192245,
this adds\r\nrequest-time to the Lens Embeddable. This would allow to
track these\r\nmetrics anywhere where Lens is embedded.\r\n\r\nThis is
particularly important for Lens embedded in a Dashboard since\r\nall
performance journeys are written against Dashboards.\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
For maintainers\r\n\r\n- [x] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Marco Vettorello
<vettorello.marco@gmail.com>","sha":"682afb7d8cf2712c2a4d3c64820e4baf2af100bf"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Thomas Neirynck <thomas@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens performance release_note:skip Skip the PR/issue when compiling release notes v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants