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

[Telemetry] Add method to enable endpoint security data usage example #80940

Merged

Conversation

Bamieh
Copy link
Member

@Bamieh Bamieh commented Oct 18, 2020

Closes #79859

@Bamieh Bamieh added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v7.10.1 labels Oct 18, 2020
@Bamieh Bamieh requested a review from pjhampton October 18, 2020 16:25
@Bamieh Bamieh requested review from a team as code owners October 18, 2020 16:25
@Bamieh Bamieh changed the title Add method to enable example [Telemetry] Add method to enable endpoint security data usage example Oct 18, 2020
initTelemetry(
{
usageCollection: plugins.usageCollection,
telemetryManagementSection: plugins.telemetryManagementSection,
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems much more simple than what we initially discussed. Great approach!

Copy link
Contributor

@pjhampton pjhampton left a comment

Choose a reason for hiding this comment

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

🌔 🚀 ✨ LGTM ✨ 🚀 🌔

@pjhampton
Copy link
Contributor

Can this not go out in 7.10.0? I notice you have tagged 7.10.1?

@Bamieh Bamieh added v7.10.0 and removed v7.10.1 labels Oct 19, 2020
@Bamieh
Copy link
Member Author

Bamieh commented Oct 19, 2020

@pjhampton whoops. fixed

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

code review only,
LGTM

@@ -29,6 +29,7 @@ describe('TelemetryManagementSectionComponent', () => {

it('renders as expected', () => {
const onQueryMatchChange = jest.fn();
const isSecurityExampleEnabled = jest.fn().mockReturnValue(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit, but might be more DRY to just set these (isSecurityExampleEnabled && onQueryMatchChange) in a beforeEach at the top of the relevant describe blocks since they don't seem to change for any of the tests

Copy link
Member Author

Choose a reason for hiding this comment

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

I usually prefer to keep them like that in the tests to make it easier to read what is happening. each it has almost all it needs encapsulated inside it, so you can update/refactor the tests more easily if needed in the future.

) : (
<FormattedMessage
id="telemetry.seeExampleOfClusterData"
defaultMessage="See example of the {clusterData} that we collect."
Copy link
Contributor

Choose a reason for hiding this comment

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

Missed pluralization of 'example', I think? "See an example of...." or "See examples of...." ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Its just 1 example of the clusterData. examples in the case we have 2 examples 1 for clusterData and the other for security solutions. I might be wrong but that was my reasning behind it

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. thanks!

Copy link
Contributor

@michaelolo24 michaelolo24 left a comment

Choose a reason for hiding this comment

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

Looks good, really just the minor pluralization thing in telemetry_management_section.tsx

Copy link
Contributor

@rylnd rylnd left a comment

Choose a reason for hiding this comment

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

Desk tested this with securitySolution both enabled and disabled. LGTM 👍

public setup(
core: CoreSetup,
{ advancedSettings, telemetry: { telemetryService } }: TelemetryManagementSectionPluginDepsSetup
) {
advancedSettings.component.register(
advancedSettings.component.componentType.PAGE_FOOTER_COMPONENT,
telemetryManagementSectionWrapper(telemetryService),
telemetryManagementSectionWrapper(telemetryService, this.shouldShowSecuritySolutionExample),
Copy link
Contributor

Choose a reason for hiding this comment

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

I am wondering if you really need to pass a function here, I feel like you can just pass this.showSecuritySolutionExample

Copy link
Member Author

Choose a reason for hiding this comment

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

Since booleans are copied and not passed by reference; we need a function to get the latest value of the variable. Passing it as a value directly might cause unexpected bugs especially since most kibana does not referesh between pages now.

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

X-Pack APM API integration tests (basic).x-pack/test/apm_api_integration/basic/tests/correlations/slow_durations·ts.APM specs (basic) Correlations Slow durations with different scoring returns buckets for each score

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: APM specs (basic)
[00:00:00]           └-> "before all" hook
[00:01:57]           └-: Correlations
[00:01:57]             └-> "before all" hook
[00:01:57]             └-: Slow durations
[00:01:57]               └-> "before all" hook
[00:02:05]               └-: with different scoring
[00:02:05]                 └-> "before all" hook
[00:02:05]                 └-> "before all" hook
[00:02:05]                   │ info [apm_8.0.0] Loading "mappings.json"
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:02:05]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:02:05]                   │ info [apm_8.0.0] Loading "data.json.gz"
[00:02:05]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0]]])." previous.health="YELLOW" reason="shards started [[.ml-anomalies-shared][0]]"
[00:02:05]                   │ info [apm_8.0.0] Created index ".ml-anomalies-shared"
[00:02:05]                   │ debg [apm_8.0.0] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"1","number_of_shards":"1","translog":{"durability":"async"}}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [.ml-config] creating index, cause [api], templates [.ml-config], shards [1]/[1]
[00:02:05]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] updating number_of_replicas to [0] for indices [.ml-config]
[00:02:05]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]])." previous.health="YELLOW" reason="shards started [[.ml-config][0]]"
[00:02:05]                   │ info [apm_8.0.0] Created index ".ml-config"
[00:02:05]                   │ debg [apm_8.0.0] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","max_result_window":"10000","number_of_replicas":"1","number_of_shards":"1"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-error-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:02:05]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-8.0.0-error-000001][0]]])." previous.health="YELLOW" reason="shards started [[apm-8.0.0-error-000001][0]]"
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-error-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-error-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-error-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:02:05]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[apm-8.0.0-error-000002][0]]])." previous.health="YELLOW" reason="shards started [[apm-8.0.0-error-000002][0]]"
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-error-000002"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-error-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-error-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.07.31-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-error-2020.07.31-000001" settings {"index":{"blocks":{"write":"true"},"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-error-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.07.31-000002"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-error-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-error-2020.09.16-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-error-2020.09.16-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-error-2020.09.16-000001" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-error"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-metric-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-metric-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-metric-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-metric-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-metric-000002"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-metric-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-metric-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.07.31-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.07.31-000001" settings {"index":{"blocks":{"write":"true"},"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-metric-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.07.31-000002"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-metric-2020.09.16-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-metric-2020.09.16-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-metric-2020.09.16-000001" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-metric"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-span-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:02:05]                   │ info [apm_8.0.0] Created index "apm-8.0.0-span-000001"
[00:02:05]                   │ debg [apm_8.0.0] "apm-8.0.0-span-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:05]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-span-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-span-000002"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-span-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-span-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.07.31-000001"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-span-2020.07.31-000001" settings {"index":{"blocks":{"write":"true"},"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-span-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.07.31-000002"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-span-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-span-2020.09.16-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-span-2020.09.16-000001"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-span-2020.09.16-000001" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-span"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-transaction-000001] creating index, cause [api], templates [], shards [1]/[0]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-000001"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-transaction-000001" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-transaction-000002] creating index, cause [api], templates [], shards [1]/[0]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-000002"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-transaction-000002" settings {"index":{"auto_expand_replicas":"false","codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"0","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-transaction-2020.07.31-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.07.31-000001"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.07.31-000001" settings {"index":{"blocks":{"write":"true"},"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"50","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-transaction-2020.07.31-000002] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.07.31-000002"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.07.31-000002" settings {"index":{"codec":"best_compression","lifecycle":{"indexing_complete":"true","name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:06]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1603195014135574761] [apm-8.0.0-transaction-2020.09.16-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:02:06]                   │ info [apm_8.0.0] Created index "apm-8.0.0-transaction-2020.09.16-000001"
[00:02:06]                   │ debg [apm_8.0.0] "apm-8.0.0-transaction-2020.09.16-000001" settings {"index":{"codec":"best_compression","lifecycle":{"name":"apm-rollover-30-days","rollover_alias":"apm-8.0.0-transaction"},"mapping":{"total_fields":{"limit":"2000"}},"max_docvalue_fields_search":"200","number_of_replicas":"1","number_of_shards":"1","priority":"100","refresh_interval":"5s"}}
[00:02:10]                   │ info [apm_8.0.0] Indexed 1940 docs into ".ml-anomalies-shared"
[00:02:10]                   │ info [apm_8.0.0] Indexed 34 docs into ".ml-config"
[00:02:10]                   │ info [apm_8.0.0] Indexed 337 docs into "apm-8.0.0-error-2020.09.16-000001"
[00:02:10]                   │ info [apm_8.0.0] Indexed 6803 docs into "apm-8.0.0-metric-2020.09.16-000001"
[00:02:10]                   │ info [apm_8.0.0] Indexed 5176 docs into "apm-8.0.0-span-2020.09.16-000001"
[00:02:10]                   │ info [apm_8.0.0] Indexed 1349 docs into "apm-8.0.0-transaction-2020.09.16-000001"
[00:02:10]                 └-> returns buckets for each score
[00:02:10]                   └-> "before each" hook: global before each
[00:02:10]                   └-> "before each" hook
[00:02:10]                   └- ✖ fail: APM specs (basic) Correlations Slow durations with different scoring returns buckets for each score
[00:02:10]                   │       Error: expect(received).toMatchInlineSnapshot(snapshot)
[00:02:10]                   │ 
[00:02:10]                   │ Snapshot name: `Slow durations with different scoring returns buckets for each score 1`
[00:02:10]                   │ 
[00:02:10]                   │ - Snapshot  - 1
[00:02:10]                   │ + Received  + 1
[00:02:10]                   │ 
[00:02:10]                   │ @@ -3,11 +3,11 @@
[00:02:10]                   │       "name": "percentage",
[00:02:10]                   │       "value": 0.1875,
[00:02:10]                   │     },
[00:02:10]                   │     Object {
[00:02:10]                   │       "name": "jlh",
[00:02:10]                   │ -     "value": 3.33506905769659,
[00:02:10]                   │ +     "value": 3.23640246539792,
[00:02:10]                   │     },
[00:02:10]                   │     Object {
[00:02:10]                   │       "name": "chi_square",
[00:02:10]                   │       "value": 219.192006524483,
[00:02:10]                   │     },
[00:02:10]                   │       + expected - actual
[00:02:10]                   │ 
[00:02:10]                   │       -false
[00:02:10]                   │       +true
[00:02:10]                   │       
[00:02:10]                   │       at Assertion.assert (/dev/shm/workspace/parallel/6/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:10]                   │       at Assertion.toMatchInline [as eql] (/dev/shm/workspace/parallel/6/kibana/packages/kbn-expect/expect.js:244:8)
[00:02:10]                   │       at Context.it (test/apm_api_integration/basic/tests/correlations/slow_durations.ts:115:29)
[00:02:10]                   │ 
[00:02:10]                   │ 

Stack Trace

{ Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `Slow durations with different scoring returns buckets for each score 1`

- Snapshot  - 1
+ Received  + 1

@@ -3,11 +3,11 @@
      "name": "percentage",
      "value": 0.1875,
    },
    Object {
      "name": "jlh",
-     "value": 3.33506905769659,
+     "value": 3.23640246539792,
    },
    Object {
      "name": "chi_square",
      "value": 219.192006524483,
    },
    at Assertion.assert (/dev/shm/workspace/parallel/6/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.toMatchInline [as eql] (/dev/shm/workspace/parallel/6/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/apm_api_integration/basic/tests/correlations/slow_durations.ts:115:29) actual: 'false', expected: 'true', showDiff: true }

Metrics [docs]

page load bundle size

id before after diff
securitySolution 262.0KB 262.3KB +310.0B
telemetryManagementSection 36.6KB 38.2KB +1.6KB
total +1.9KB

History

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

@Bamieh Bamieh merged commit dd5e527 into elastic:master Oct 20, 2020
@Bamieh Bamieh deleted the telemetry/endpoint_security_example_setup_method branch October 20, 2020 14:03
Bamieh added a commit to Bamieh/kibana that referenced this pull request Oct 20, 2020
…elastic#80940)

# Conflicts:
#	x-pack/plugins/security_solution/public/plugin.tsx
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 20, 2020
* master: (64 commits)
  Rename Security Solution Bug Template (elastic#81187)
  Update links (elastic#81125)
  Specify format for date range query (elastic#81025)
  [Alerting] Improve toast when alert is created (elastic#80327)
  [UX] Add empty states (elastic#80904)
  Add TS config for kibana_legacy (elastic#80992)
  [Telemetry] Add method to enable endpoint security data usage example (elastic#80940)
  [Alerting] Add scoped cluster client to alerts and actions services (elastic#80794)
  Fix reactRouterNavigate when used with a string (elastic#80520)
  [Security Solution] [Detections] Read privileges for dependencies (elastic#80852)
  [ML] Fixing exclude frequent in advanced wizard (elastic#81121)
  Fix security solution template label (elastic#80976)
  [DOCS] Update index management docs (elastic#80893)
  [APM] Error rate on service list page is not in sync with the value at the transaction page (elastic#80814)
  skip flaky suite (elastic#81072)
  [Task Manager] Cleans up legacy plugin structure (elastic#80381)
  Support unsigned_long fields (elastic#81115)
  [Form lib] Export internal state instead of raw state (elastic#80842)
  [Lens] Add toast notification when visualization is saved (elastic#80788)
  Index pattern edit field formatter API (elastic#78352)
  ...
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v7.10.0 v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OSS build showing X-Pack info?
8 participants