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

Add documentation for kibana:plugin_render_time #184206

Merged
merged 9 commits into from
May 29, 2024

Conversation

kpatticha
Copy link
Contributor

@kpatticha kpatticha commented May 24, 2024

Summary

closes https://github.com/elastic/observability-dev/issues/3374

  1. Added the section # Report kibana:plugin_render_time metric event.
  2. The rest changes are just auto-format

@apmmachine
Copy link
Contributor

🤖 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!)

@kpatticha kpatticha added release_note:skip Skip the PR/issue when compiling release notes v8.15.0 labels May 24, 2024
@kpatticha
Copy link
Contributor Author

adding @yngrdyn as reviewer, as you might use this in the future. Let me know if anything is missing or unclear

@kpatticha kpatticha requested a review from yngrdyn May 24, 2024 16:19
@kpatticha kpatticha requested a review from dmlemeshko May 24, 2024 16:20
@@ -181,7 +186,132 @@ Please contact the #kibana-performance team if you need more help visualizing an
All users who are opted in to report telemetry will start reporting event based telemetry as well.
The data is available to be analyzed on the production telemetry cluster.

# Report `kibana:plugin_render_time` metric event.

The metric `kibana:plugin_render_time` measures the time from the start of navigation to the point at which the most meaningful component appears on the screen.
Copy link
Member

Choose a reason for hiding this comment

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

Question. Are we sure its the start of the navigation? Not the Kibana plugin start time ?

Copy link
Member

Choose a reason for hiding this comment

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

What we want is form the browser navigation start time. I am not sure if we are capturing that, If not we need to change the implementation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The performance mark start::pageChange is set on route change and the kibana:plugin_render_time is the duration between the start::pageChange and the end::pageReady.

Screenshot 2024-05-27 at 12 36 05

However, I've noticed that there are more than one markers for start::pageChange per route and the performance.measure gets the latest marker for start::pageChange. it seems to be due to re-render.

I believe I need to fix this.

Copy link
Member

Choose a reason for hiding this comment

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

There is other way to do this, Where you don't need to set marks on mount start/end. To truly measure based on the navigation time, we could do performance.measure("render-time)" this would get the metric between the Nav time and when the page is ready.

Thanks for checking, it seems as you mentioned we need a followup to fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could do performance.measure("render-time)"

Where should we do the performance.measure("render-time) ? I think I missed this part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fyi the ticket: https://github.com/elastic/kibana/issues/184390

Feel free to update it

kpatticha and others added 4 commits May 26, 2024 11:41
…cs.mdx

Co-authored-by: Vignesh Shanmugam <vignesh.shanmugam22@gmail.com>
…cs.mdx

Co-authored-by: Vignesh Shanmugam <vignesh.shanmugam22@gmail.com>
…cs.mdx

Co-authored-by: Vignesh Shanmugam <vignesh.shanmugam22@gmail.com>
Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

LGTM

@kpatticha kpatticha merged commit ead4595 into elastic:main May 29, 2024
5 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 29, 2024
rshen91 pushed a commit to rshen91/kibana that referenced this pull request May 30, 2024
## Summary

closes elastic/observability-dev#3374

1. Added the section # Report `kibana:plugin_render_time` metric event.
2. The rest changes are just auto-format

---------

Co-authored-by: Vignesh Shanmugam <vignesh.shanmugam22@gmail.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 release_note:skip Skip the PR/issue when compiling release notes v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants