-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Unified Observability] Add Page load distribution chart to overview page #132258
[Unified Observability] Add Page load distribution chart to overview page #132258
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@estermv Looks good having the chart there. I've added some small design nits to the review.
x-pack/plugins/observability/public/components/app/section/ux/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability/public/components/app/section/ux/index.tsx
Outdated
Show resolved
Hide resolved
const PAGE_LOAD_DISTRIBUTION_TITLE = i18n.translate( | ||
'xpack.observability.overview.ux.pageLoadDistribution.title', | ||
{ | ||
defaultMessage: 'Page load distribution', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultMessage: 'Page load distribution', | |
defaultMessage: 'Page load distribution: Top 5 services', |
Not sure if we're scoping it to the top 5 services instead of all services available? If so, we can add that to the title of the chart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I totally forgot about it 😅. I've been searching for how to do it in the Exploratory view but I didn't know how, so maybe we can't do that.
@shahzad31 is it possible to show the top 5 services only in the exploratory view?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@estermv right now, it's hardcode, so we will have to make it configurable, if we want that.
https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#L174
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will suggest creating an enhancement request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@formgeist I opened an issue to make it configurable #132720. Since the number of services is already limited and the chart won't break, are you fine with merging this as it is?
Co-authored-by: Casper Hübertz <casper@formgeist.com>
@elasticmachine merge upstream |
Pinging @elastic/unified-observability (Team:Unified observability) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AO changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have uptime data locally so I cannot test, but the code in general looks good.
I left a comment regarding how we pass the Kibana services to the exploratory view embeddable but that can be done in a different PR if necessary.
'service.name': ['ALL_VALUES'], | ||
}, | ||
breakdown: 'service.name', | ||
dataType: 'ux' as AppDataType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me without the as AppDataType
. Maybe there was some other error before?
dataType: 'ux' as AppDataType, | |
dataType: 'ux', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppDataType probably should an enum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do it in a different PR to make it easier to review.
x-pack/plugins/observability/public/components/app/section/ux/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability/public/components/app/section/ux/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !!
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Closes #129472
It adds a page load distribution chart inside the UX section using the exploratory view embeddable.
NOTE FOR REVIEWERS: the loading of the chart is not ideal, but since this visualization doesn't appear in the viewport when the user loads the page I think we can do it in further iterations.