-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Table Visualization for TSVB #12813
Table Visualization for TSVB #12813
Conversation
@simianhacker, what do you mean by "id_field to pivot data on"? I'm also curious why you are using different sort icons from the rest of the app? |
@shaharmor The |
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.
When creating a a new vis and selecting table I am getting the error of
TypeError: Cannot read property 'order' of undefined
at doc (/Users/mattapperson/Development/kibana/src/core_plugins/metrics/server/lib/vis_data/request_processors/table/pivot.js:47:51
Not sure if this is because I need to adjust metrics, but at the very least this should really be handled differently
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.
code LGTM, just need to fix that one error
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
When is this going to be merged? Are you waiting for the 6.0 GA in order to merge it to the 6.x branch? |
@shaharmor Probably some time today :D |
* Adding table vis * Making linter happy * Getting the data api inline * Fixing aggs for table vis * Fixing aggs for table vis * Adding table vis * Adding uiState and sorting * Adding sorting * Adding sorting and removing display fields * fixing color picker in timeseries and gauge; thresholds for trend arrows * Removing thresholds from trends * removing background color * remvoing obsolete tests * Fixing terminology... pivot doesn't make sense * updating error message * making the sort icons match the rest of the app * Fixing eslint bullshit * Fixing a few bugs from merges * Fixing linting issues * Adding a falsy check * Adding aria labels * Changing toggle to use a button * Adding focus-ring back in * Adding check for model and visData; they should never be null * Changing ids to use new htmlIdGenerator function * Switching to htmlIdGenerator * Fixing the way sorting works; fixing the error handling * making no data compatible with vis * Fixing defaults bug; Adding missing css rule * Fixing sorting bug
Back ported to 6.x with fe7e8a5 |
min_doc_count: 0, | ||
extended_bounds: { | ||
min: from.valueOf(), | ||
max: to.valueOf() - (bucketSize * 1000) |
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.
@simianhacker why do you reduce the bucketSize
here?
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 was removed from the rest of TSVB but because this PR languished in review for so long I forgot to remove it from here as well. I have a PR that fixes this. #14553
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.
Thnx, should probably be removed from here as well no? https://github.com/elastic/kibana/pull/12813/files/abeeaa7224fd391aa73e3b1200888da3623e725c#diff-63d4f38a0a2ce1a25e2e18de8982c1b1R21
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.
Oops... Added that one as well to the PR... Thanks!
filter: { | ||
range: { | ||
[timeField]: { | ||
gte: to.valueOf() - (bucketSize * 1500), |
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.
Also here, why change the value?
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 here for sorting, the group by terms works the same way (https://github.com/elastic/kibana/blob/master/src/core_plugins/metrics/server/lib/vis_data/request_processors/series/split_by_terms.js#L26-L44). You can't sort a terms aggregation on a metric that is a child of a date histogram so you have to create a metric outside the date histogram to sort on with a filter that approximates the last bucket. I originally took the bucket size and multiplied by 1000 milliseconds but would occasionally get strange results; using 1500 milliseconds made things more reliable. Also notice this is slightly different because it's adding the time to the gte
side and not the lte
side.
* Adding table vis * Making linter happy * Getting the data api inline * Fixing aggs for table vis * Fixing aggs for table vis * Adding table vis * Adding uiState and sorting * Adding sorting * Adding sorting and removing display fields * fixing color picker in timeseries and gauge; thresholds for trend arrows * Removing thresholds from trends * removing background color * remvoing obsolete tests * Fixing terminology... pivot doesn't make sense * updating error message * making the sort icons match the rest of the app * Fixing eslint bullshit * Fixing a few bugs from merges * Fixing linting issues * Adding a falsy check * Adding aria labels * Changing toggle to use a button * Adding focus-ring back in * Adding check for model and visData; they should never be null * Changing ids to use new htmlIdGenerator function * Switching to htmlIdGenerator * Fixing the way sorting works; fixing the error handling * making no data compatible with vis * Fixing defaults bug; Adding missing css rule * Fixing sorting bug
* Adding table vis * Making linter happy * Getting the data api inline * Fixing aggs for table vis * Fixing aggs for table vis * Adding table vis * Adding uiState and sorting * Adding sorting * Adding sorting and removing display fields * fixing color picker in timeseries and gauge; thresholds for trend arrows * Removing thresholds from trends * removing background color * remvoing obsolete tests * Fixing terminology... pivot doesn't make sense * updating error message * making the sort icons match the rest of the app * Fixing eslint bullshit * Fixing a few bugs from merges * Fixing linting issues * Adding a falsy check * Adding aria labels * Changing toggle to use a button * Adding focus-ring back in * Adding check for model and visData; they should never be null * Changing ids to use new htmlIdGenerator function * Switching to htmlIdGenerator * Fixing the way sorting works; fixing the error handling * making no data compatible with vis * Fixing defaults bug; Adding missing css rule * Fixing sorting bug
Issue when using a Date field as the Group By Field. |
This PR adds a table visualization for Time Series Visual Builder. For the most part everything works like the rest of the visualizations with a few exceptions:
group by field
to aggregate the data on.system.network.name
but you want to filter using-system.network.name:lo*
to remove localhost.Editor
On a dashboard
Series Options
Panel Options