-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Uptime] Waterfall Chart - enable timings for local files by leveraging total time #87424
[Uptime] Waterfall Chart - enable timings for local files by leveraging total time #87424
Conversation
Pinging @elastic/uptime (Team:uptime) |
x-pack/plugins/uptime/public/components/monitor/synthetics/step_detail/waterfall/types.ts
Outdated
Show resolved
Hide resolved
71b24c6
to
117ef60
Compare
117ef60
to
67fc179
Compare
acc.push({ | ||
x: index, | ||
y0: currentOffset, | ||
y: currentOffset + item.timings.total, |
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.
so total will always be there?
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.
Vignesh believes that it will be available for static files.
I've added additional logic to account for scenarios in which total is unavailable, as well as scenarios in which the entire timings object is unavailable.
I noticed that this is the case for when the connection is refused. All items, including the total, are listed as -1
. With my new logic, this is what the behavior would be. There is no hover state.
This is when there is nothing up and running on localhost:8000
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.
Correction: I'm able to remove the tooltip but not the background hover state, which seems to come bundled with passing a custom tooltip to the BarSeries from Elastic Charts. I've yet to discover a way to either use a custom tooltip or specify the tooltip as none on a per datum basis. I can continue the conversation in the elastic charts chat on Monday.
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.
Total would always be there for all requests. We need to just use them as fallback when we don't have timings for other parts of the request.
@elasticmachine merge upstream |
…les' of https://github.com/dominiqueclarke/kibana into fix/86331-uptime-waterfall-enable-timings-for-static-files
@elasticmachine merge upstream |
…les' of https://github.com/dominiqueclarke/kibana into fix/86331-uptime-waterfall-enable-timings-for-static-files
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, Great work and improvement !!
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…ng total time (elastic#87424) * uptime waterfall enable timings for static files by leveraging total time * update cases for when their is no waterfall timing available * add showTooltip propertier to WaterfallDataSeriesConfigProperties * remove content downloading from the legend * add mime type to content downloading label Co-authored-by: Kibana Machine <[email protected]>
…ng total time (elastic#87424) * uptime waterfall enable timings for static files by leveraging total time * update cases for when their is no waterfall timing available * add showTooltip propertier to WaterfallDataSeriesConfigProperties * remove content downloading from the legend * add mime type to content downloading label Co-authored-by: Kibana Machine <[email protected]>
…ng total time (#87424) (#87930) * uptime waterfall enable timings for static files by leveraging total time * update cases for when their is no waterfall timing available * add showTooltip propertier to WaterfallDataSeriesConfigProperties * remove content downloading from the legend * add mime type to content downloading label Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…ng total time (#87424) (#87931) * uptime waterfall enable timings for static files by leveraging total time * update cases for when their is no waterfall timing available * add showTooltip propertier to WaterfallDataSeriesConfigProperties * remove content downloading from the legend * add mime type to content downloading label Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Fixes #86331
Summary
This PR creates an entry for a resource in the waterfall chart, even when individual timing values are unavailable, as is the case with local files. We first loop through checking the specific timings. If an entry is not found for specific timing values, in the case where all the specific named timings equal
-1
, then we move on and use the total time.Test cases