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

[Stack Monitoring] Logstash migration #113256

Merged
merged 19 commits into from
Oct 6, 2021

Conversation

phillipb
Copy link
Contributor

@phillipb phillipb commented Sep 28, 2021

Summary

Migrate logstash pages. Fixes: #111759

@phillipb phillipb requested a review from a team as a code owner September 28, 2021 12:44
@phillipb phillipb requested review from a team September 28, 2021 12:44
@phillipb phillipb added Epic: Stack Monitoring de-angularization Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.16.0 v8.0.0 labels Sep 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@phillipb phillipb added the release_note:skip Skip the PR/issue when compiling release notes label Sep 28, 2021
@phillipb phillipb changed the title Logstash migration [Stack Monitoring] Logstash migration Sep 28, 2021
Copy link
Contributor

@matschaffer matschaffer left a comment

Choose a reason for hiding this comment

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

Got a couple code process notes. Looks decent overall. I'll try to exercise it.

@matschaffer
Copy link
Contributor

We should probably add the single node view as well, or remove the "fixes" from the description here

@matschaffer
Copy link
Contributor

Looks like we're missing the pipeline stage version and flyout too

Stack_Monitoring_-Logstash-Pipeline-_Elastic

Stack_Monitoring_-Logstash-Pipeline-_Elastic

Great start though! I'd be fine ✅ once the basics (merge issue, "fixes" comment) are fixed up.

@matschaffer matschaffer mentioned this pull request Sep 30, 2021
9 tasks
@phillipb phillipb added the auto-backport Deprecated - use backport:version if exact versions are needed label Sep 30, 2021
@matschaffer
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@matschaffer matschaffer left a comment

Choose a reason for hiding this comment

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

Spotted a couple of issues. But we could potentially fix in a follow up.

Comment on lines +68 to +71
if (pageData === null) {
return null;
}
const { clusterStatus, pipelines } = pageData || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the fallback to an empty object breaks line 74 when reading clusterStatus.versions. Can we make the initial pageData check more robust (or maybe null is enough) and get rid of fallbacks and conditionals in the following lines ?

@phillipb phillipb requested a review from matschaffer October 5, 2021 14:14
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/search/session·ts.apis search search session touched time updates when you poll on an search

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]                 │
[00:00:00]                   └-: apis
[00:00:00]                     └-> "before all" hook in "apis"
[00:00:00]                     └-: search
[00:00:00]                       └-> "before all" hook in "search"
[00:00:03]                       └-: search session
[00:00:03]                         └-> "before all" hook for "should fail to extend a nonexistent session"
[00:00:03]                         └-> should fail to extend a nonexistent session
[00:00:03]                           └-> "before each" hook: global before each for "should fail to extend a nonexistent session"
[00:00:03]                           │ proc [kibana] [2021-10-06T01:44:17.451+00:00][ERROR][plugins.dataEnhanced.data_enhanced] [object Object]
[00:00:03]                           └- ✓ pass  (86ms) "apis search search session should fail to extend a nonexistent session"
[00:00:03]                         └-> should sync search ids into not persisted session
[00:00:03]                           └-> "before each" hook: global before each for "should sync search ids into not persisted session"
[00:00:03]                           │ debg Waiting up to 5000ms for searches persisted into session...
[00:00:03]                           │ proc [kibana] [2021-10-06T01:44:17.612+00:00][ERROR][plugins.dataEnhanced.data_enhanced] [object Object]
[00:00:03]                           │ debg --- retry.waitForWithTimeout error: expected 200 "OK", got 404 "Not Found"
[00:00:04]                           │ proc [kibana] [2021-10-06T01:44:18.180+00:00][ERROR][plugins.dataEnhanced.data_enhanced] [object Object]
[00:00:04]                           │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:00:04]                           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FNJrU6RqSFq_3NiAmOHqrA] update_mapping [_doc]
[00:00:04]                           └- ✓ pass  (1.3s) "apis search search session should sync search ids into not persisted session"
[00:00:04]                         └-> should complete session when searches complete
[00:00:04]                           └-> "before each" hook: global before each for "should complete session when searches complete"
[00:00:05]                           │ debg Waiting up to 5000ms for searches persisted into session...
[00:00:08]                           │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_8.0.0_001/FNJrU6RqSFq_3NiAmOHqrA] update_mapping [_doc]
[00:00:15]                           │ debg Waiting up to 5000ms for searches eventually complete and session gets into the complete state...
[00:00:15]                           └- ✓ pass  (11.2s) "apis search search session should complete session when searches complete"
[00:00:15]                         └-> touched time updates when you poll on an search
[00:00:15]                           └-> "before each" hook: global before each for "touched time updates when you poll on an search"
[00:00:15]                           │ debg Waiting up to 20000ms for search session created...
[00:00:15]                           │ proc [kibana] [2021-10-06T01:44:30.018+00:00][ERROR][plugins.dataEnhanced.data_enhanced] [object Object]
[00:00:16]                           │ proc [kibana] [2021-10-06T01:44:30.599+00:00][ERROR][plugins.dataEnhanced.data_enhanced] [object Object]
[00:00:19]                           └- ✖ fail: apis search search session touched time updates when you poll on an search
[00:00:19]                           │      Error: expected '2021-10-06T01:44:30.989Z' to be below 2021-10-06T01:44:30.989Z
[00:00:19]                           │       at Assertion.assert (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:00:19]                           │       at Assertion.lessThan.Assertion.below (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:336:8)
[00:00:19]                           │       at Function.lessThan (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:531:15)
[00:00:19]                           │       at Context.<anonymous> (test/api_integration/apis/search/session.ts:438:65)
[00:00:19]                           │       at runMicrotasks (<anonymous>)
[00:00:19]                           │       at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:00:19]                           │       at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:00:19]                           │ 
[00:00:19]                           │ 

Stack Trace

Error: expected '2021-10-06T01:44:30.989Z' to be below 2021-10-06T01:44:30.989Z
    at Assertion.assert (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.lessThan.Assertion.below (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:336:8)
    at Function.lessThan (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/expect/expect.js:531:15)
    at Context.<anonymous> (test/api_integration/apis/search/session.ts:438:65)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Object.apply (/dev/shm/workspace/parallel/12/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
monitoring 631 640 +9

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
monitoring 1011.0KB 1.0MB +34.0KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@matschaffer matschaffer left a comment

Choose a reason for hiding this comment

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

I think we can go with this. I noticed a few code level tweaks that I put in phillipb#1 for you (just merge if you're cool with it).

The other weird thing I notices is that the pipeline view detail drawer re-opens after you hit the "X" then you have to click it again to close. Here's a recording:

Otherwise looks good to me and we can patch up weirdness as a followup I think.

@phillipb phillipb merged commit 7c27822 into elastic:master Oct 6, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 6, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 6, 2021
@matschaffer matschaffer mentioned this pull request Oct 7, 2021
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Epic: Stack Monitoring de-angularization release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Stack Monitoring][Angular removal] Migrate Logstash views
5 participants