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

[Synthetucs] Added perf metrics for es queries #186313

Merged
merged 9 commits into from
Jun 21, 2024

Conversation

shahzad31
Copy link
Contributor

Summary

Added perf metrics for es queries !!

Fixes https://github.com/elastic/synthetics-dev/issues/351

Started reporting query time for exploratory based visualizations used in Synthetics

Test data can be seen on staging telemetry cluster !!

image

@shahzad31 shahzad31 requested a review from a team as a code owner June 17, 2024 15:43
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jun 17, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@shahzad31 shahzad31 added release_note:skip Skip the PR/issue when compiling release notes and removed ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jun 17, 2024
@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Jun 17, 2024
@@ -138,7 +143,10 @@ export class Plugin
return {
createExploratoryViewUrl,
getAppDataView: getAppDataView(pluginsStart.dataViews),
ExploratoryViewEmbeddable: getExploratoryViewEmbeddable({ ...coreStart, ...pluginsStart }),
ExploratoryViewEmbeddable: getExploratoryViewEmbeddable(
{ ...coreStart, ...pluginsStart },
Copy link
Contributor

Choose a reason for hiding this comment

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

The this.analyticsService should be part of coreStart?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well it's coming from coreSetup, not coreStart.

if (requests && analytics) {
const listReq = requests.getRequests();
if (listReq.length > 0) {
// find the highest query time
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please elaborate why you need to find the highest query time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's because a chart may have many other queries , so we only care about slowest query.

…components/shared/exploratory_view/hooks/use_ebt_telemetry.ts
@shahzad31 shahzad31 enabled auto-merge (squash) June 20, 2024 15:07
@kibana-ci
Copy link
Collaborator

kibana-ci commented Jun 21, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
exploratoryView 181 255 +74

Async chunks

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

id before after diff
exploratoryView 182.0KB 268.6KB +86.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
exploratoryView 43.9KB 44.0KB +109.0B
Unknown metric groups

async chunk count

id before after diff
exploratoryView 7 8 +1

History

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

@shahzad31 shahzad31 merged commit 50ee4cf into elastic:main Jun 21, 2024
30 of 31 checks passed
@kibanamachine kibanamachine added v8.15.0 backport:skip This commit does not require backporting labels Jun 21, 2024
@shahzad31 shahzad31 deleted the perf-metrics branch June 21, 2024 06:43
bhapas pushed a commit to bhapas/kibana that referenced this pull request Jun 24, 2024
## Summary

Added perf metrics for es queries !!

Fixes elastic/synthetics-dev#351

Started reporting query time for exploratory based visualizations used
in Synthetics

Test data can be seen on staging telemetry cluster !!

<img width="1698" alt="image"
src="https://github.com/elastic/kibana/assets/3505601/120d9ea6-0162-4f56-8168-001b749d31e8">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
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 ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants