-
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
[Exploratory View]Additional metrics for kpi over time #96532
[Exploratory View]Additional metrics for kpi over time #96532
Conversation
Pinging @elastic/uptime (Team:uptime) |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @shahzad31 |
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.
Looks great!
One thing I noticed is that if you select the "placeholder" option, you encounter this error.
This isn't a great experience. Since we already initialize the chart with a starting metric, do we need to include the placeholder as an option? Since the fields within the Definition section all have different purposes, perhaps we can label them some other way, like with EuiFormRow
.
If we don't make use of EuiFormRow, we'll need to include aria-labels for the selects, as it doesn't appear as if the input fields are currently labeled in the html.
Also, sometimes the buttons spill out of their columns. This may not be as big of an issue, as I was viewing the feature at non-standard breakpoints.
|
||
if (fieldType === 'date') { | ||
return this.getDateHistogramColumn(fieldName); | ||
} | ||
if (fieldType === 'number') { | ||
return this.getNumberColumn(fieldName); | ||
if (columnType === 'operation' || operationType) { |
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 is starting to get nested pretty deep. Any alternatives?
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.
it's indeed, i am hoping Lens team can expose these small utils to make embeddable component life easy. May have to contribute myself there, especially these build column utils.
|
||
describe.skip('SeriesChartTypes', function () { | ||
describe.skip('SeriesChartTypesSelect', function () { |
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.
Why are these skipped currently?
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 had skipped these as well because of getByRole slowness, i wasn't earlier sure why it's happening so make CI happy, i did that, will unskip in a follow up.
|
||
const { data = [], loading } = useFetcher(() => lens.getXyVisTypes(), [lens]); | ||
|
||
let vizTypes = data ?? []; |
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.
Not sure you need this with the above default assignment.
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.
++, will remove this.
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.
Exposing FieldBasedIndexPatternColumn
sounds good to me, code 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.
LGTM
@dominiqueclarke i will address these in a follow up #96782, that should be the last PR as a follow up before FF, at that point we can decide the state of things and see if we want to link actual charts to this or keep it hidden behind URL. |
…to-metrics-tab * 'master' of github.com:elastic/kibana: (44 commits) [Exploratory View]Additional metrics for kpi over time (elastic#96532) [Fleet] UI changes on hosted policy detail view (elastic#96337) Stacked line charts incorrectly shows one term as 100% (elastic#96203) [Fleet] Create enrollment API keys as current user (elastic#96464) [Lens] Make table and metric show on top Chart switcher (elastic#96601) skip flaky suite (elastic#96691) [Lens] Hide "Show more errors" once expanded (elastic#96605) [Discover] Unskip histogram hiding test (elastic#95759) skip flyout test, add linked issue elastic#96708 skip copy_to_space_flyout_internal.test.tsx elastic#96708 fix config validation (elastic#96502) Document telemetry fields for stack security features (elastic#96638) [Partial Results] Move inspector adapter integration into search source (elastic#96241) [RAC] Rule registry plugin (elastic#95903) [APM] Run precommit tasks sequentially (elastic#96551) [Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert (elastic#96633) [Security Solution] [Cases] Small UI bugfixes (elastic#96511) [Actions UI] Changed PagerDuty action form UI to fill payload fields according to the API docs for Resolve and Acknowledge events. (elastic#96363) App Search: Result Component Updates (elastic#96184) [Alerting] Preconfigured alert history index connector (elastic#94909) ...
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
PR in a series of features to cover https://github.com/elastic/uptime-dev/issues/46
Added additional metric for RUM Kpi over time
Added Page view, backend time, First contentful pain, Backend time, Total blocking time, Largest contentful paint
Also improved the chart type select component by making it a select, renamed few other variables and components.
Testing
When you select Rum data type and KPI over time report type,
you should be able to plot all those additional metrics on the chart.