Commit graph

992 commits

Author SHA1 Message Date
Christiane (Tina) Heiligers d7cac22ba2
Converts usage collection README to .mdx (#92982)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-02 09:40:43 +00:00
Oliver Gupte 6897a4ac0b
[APM] Fix hidden search bar in error pages while loading (#84476) (#93139) 2021-03-01 18:39:32 -08:00
Nathan L Smith 0320f1afb7
Hide instances latency distribution chart (#92869)
...until #88852 and #92631 are resolved.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 15:16:29 -06:00
Alejandro Fernández Haro f44916b6aa
[Telemetry] Full schema definition (#90273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 18:30:51 +00:00
Dario Gieselaar 38bcde1aea
[APM] Include services with only metric documents (#92378)
* [APM] Include services with only metric documents

Closes #92075.

* Explain as_mutable_array

* Use kuery instead of uiFilters for API tests
2021-02-27 08:44:47 +01:00
Dario Gieselaar a1d2d870d3
[APM] Always allow access to Profiling via URL (#92889) 2021-02-26 10:37:24 +01:00
Oliver Gupte 7aae6c5f50
[APM] Fix for default fields in correlations view (#91868) (#92090)
* [APM] Fix for default fields in correlations view (#91868)

* removes useCallback hook

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 18:56:06 -08:00
Casper Hübertz b1316300c0
[APM] Correlations style polish in prep for release (#92514)
- Removed the icon from the "View correlations" button
- Moved the tabs to the FlyoutHeader
- Removed unneeded spacers in the content
- Reduced the filtering by callout and button
- Made the introduction text color `subdued` to make it less noisy
- Reduced ImpactBar size and extended width so the bar itself is `100`
- Changed the selected term visualization color to `euiColorVis2` because the `euiColorAccent` is not great for visualizations.
- Changed the latency distribution visualization color to `euiColorVis1` to make it consistent with the Transactions visualization colors in the other charts.
2021-02-24 15:49:30 +01:00
Nathan L Smith 06418ae523
Put environment back in uiFilters (#92561)
`environment` is still used in `uiFilters` in UX, but not anywhere else.

It was removed when removing environment from UI filters for the rest of APM and broke UX's environment switcher. Put it back.
2021-02-24 08:27:56 -06:00
Nathan L Smith 57dfb811d6
Remove kuery from uiFilters (#91932)
* Make kuery a standalone query parameter instead of part of uiFilters
* Move getEsFilters helper to RUM
* Move query utils from "common" to "server" (it uses esKuery from the data plugin, which is exported from server, not common.)
* Move uiFiltersRt to RUM routes

References #84526.
2021-02-23 14:04:12 -06:00
Dario Gieselaar 89c103a896
[APM] Guard searches with range/additional queries (#92112)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 10:31:48 +01:00
Oliver Gupte 3c5b91f5d6
[APM] Fix stale correlations chart data for selected term (#91867) (#92109)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 18:58:45 -08:00
Dario Gieselaar 75364aa11e
[APM] Hoist HeaderMenuPortal to prevent unmounts (#92012) 2021-02-22 19:17:55 +01:00
Dario Gieselaar e7724882a0
[APM] Profiling (#91818) 2021-02-22 19:02:55 +01:00
Nathan L Smith d5e025e089
A few more environment uiFilters fixes (#92044)
Some places in the service map and annotations were still attempting to use environment from uiFilters. Fix these.
2021-02-20 19:24:23 -06:00
Cauê Marcondes 405255cd97
[APM] Break down error table api removing the sparklines (#89138)
* breaking error table api

* shows loading state while fetching metrics

* adding api tests

* removing pagination from server

* adding API test

* refactoring

* fixing license

* renaming apis

* fixing some stuff

* addressing PR comments

* adding request id

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-19 12:55:29 -05:00
Cauê Marcondes 99a60caf81
[APM] Bug: Service overview - Sparkline loading state icons has changed (#91884)
* adjusting icon size

* Updating color
2021-02-19 11:15:40 -05:00
Cauê Marcondes 1fa742d0ce
[APM] Kql Search Bar suggests values outside the selected time range (#91918) 2021-02-19 08:57:14 -05:00
Nathan L Smith 863a2d06a4
Use correct environment in anomaly detection setup link (#91877)
This was still using `uiFilters.environment` instead of environment, so the warning would never show.
2021-02-18 13:58:55 -06:00
Nathan L Smith dadf0e6564
Pass service node name in query for instance table links (#91796)
For a non-Java service, the previous link was like:

```
http://localhost:5601/kbn/app/apm/services/opbeans-python/metrics?rangeFrom=now-15m&rangeTo=now
```

which did not filter by the `service.node.name`.

It now is:

```
http://localhost:5601/kbn/app/apm/services/opbeans-python/metrics?kuery=service.node.name:%226a7f116fe344aee7e92fceeb426cbfdf6a534a8e3ba6345c16a47793eba6daf5%22&rangeFrom=now-15m&rangeTo=now
````

Which links to the metrics page with the filter applied.

The component is using a `MetricOverviewLink` which was using a `EuiLink` and passing throught the props, including `mergeQuery`, which includes the `kuery` parameter.

Replace the `EuiLink` with an `APMLink` which does use the `mergeQuery` prop and does pass the parameters through correctly.

Looks like this was changed to an `EuiLink` by a refactor in #86986.

Since we'll be making some further changes to how `kuery` is handled in #84526, I'm just making the minimal change to fix this bug at this time.
2021-02-18 07:57:19 -06:00
Nathan L Smith f022792f6a
Latency percentile labels and instances table support (#91758)
* Add "(avg.)" to dependencies table column label. (This one is always average.)
* Add latency aggregation type support to the instances table.
* Make the memory usage column a bit wider (it was cut off.)
2021-02-18 00:15:03 -06:00
Cauê Marcondes 0337d7d933
[APM] Domain for charts is based on query range (#91755)
* fixing rounding issue

* addressing PR comments
2021-02-17 19:45:30 -05:00
Nathan L Smith f650c38e12
Remove environment from uiFilters (#89647) 2021-02-17 14:28:50 -06:00
Dario Gieselaar 03c423f11d
[APM] use top_metrics aggregation where appropriate (#91479)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-02-17 14:11:54 -05:00
Cauê Marcondes 06acfd991a
[APM] Disabling time comparison (#91499) 2021-02-17 11:44:39 -05:00
Shahzad 9c0fdcfdb2
[UX App] Improve page and filters responsiveness (#91536) 2021-02-17 17:09:47 +01:00
Dario Gieselaar b71f49fca3
[APM] Wrap Elasticsearch client errors (#91125)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-17 09:28:46 +01:00
Dario Gieselaar a168fe41e3
[APM] Fix optimize-tsconfig script (#91487)
- Removes x-pack/plugins/apm/tsconfig.json file
- Make optimisation opt-in for precommit script
2021-02-17 09:06:23 +01:00
Oliver Gupte d7d2b15cdb
[APM] Correlations Beta (#86477) (#89952)
* [APM] Correlations GA (#86477)

* polish and improvements to correlations UI

* more improvements and polish

* added impact bar

* added descriptions

* make custom field persistence be unique per service

* make custom threshold unique per service in latency correlations

* adds telemetry for apm correlations feature. Events:
 - 'show_correlations_flyout'
 - 'customize_correlations_fields'
 - 'select_significant_term'

* adds more telemetry for correlations (#90622)

* removes the raw score column

* replaces experiemental callout with beta badge

* replaces threshold number input with percentile option selector

* improvements to latency correlations scoring and percentage reporting

* removes the 'apm:enableCorrelations' UI setting

* - rename useFieldNames.ts -> use_field_names.ts
- filter out fields that are not type 'keyword'
- feedback improvements

* Fixes casing issue for the 'correlations' dir

* [APM] Moves correlations button to service details tabslist row (#91080)

* [APM] Adds license check for correlations (#90766)

* [APM] Adds metrics tracking for correlations views and license prompts (#90622)

* Updated the API integration tests to check for new default fields and 15 buckets

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 20:21:47 -08:00
Nathan L Smith bef5674ccf
Move ui_filters API endpoints (#90900) 2021-02-16 16:37:44 -06:00
Greg Thompson 8126488021
Upgrade EUI to v31.7.0 (#91210)
* eui to 31.6.0

* flyout, collapsible snapshot updates

* initial overlaymask removal

* undo jest

* overlaymask src snapshot updates

* more overlaymask removals

* overlaymask removal xpack test updates

* saved objects modal form

* eui to 31.7.0

* code, codeblock types

* snapshot update

* tooltip

* remove ownFocus from ConfirmModal

* remove fragments
2021-02-16 14:06:25 -06:00
Dario Gieselaar 9ae8ba8964
[APM] Add setup instructions for PHP agent (#91381)
Co-authored-by: Sergey Kleyman <sergey.kleyman@elastic.co>
Co-authored-by: Sergey Kleyman <SergeyKleyman@users.noreply.github.com>
2021-02-16 17:11:54 +01:00
Shahzad 1c093c9760
[User Experience app] fix e2e tests (#91423) 2021-02-16 16:54:50 +01:00
Jim Fung 5c820cc95f
[APM] Darker shade for Error group details labels (#91349)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 13:34:34 +01:00
Cauê Marcondes 874fadf388
[APM] Adding comparison to throughput chart (#90128)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 22:53:05 +01:00
Nathan L Smith f9804057c8
TypeScript project references for APM (#90049)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 22:46:05 +01:00
Dario Gieselaar a28318e516
[APM] Add custom spans around async operations (#90403)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 19:34:44 +01:00
Cauê Marcondes 2fcf2a91cc
[APM] Break down transaction table api removing the sparklines (#88946)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 11:57:01 +01:00
Casper Hübertz b2104ae2ba
[APM] Polish: Update header styles and layout (#91093)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 10:20:31 +01:00
Casper Hübertz 6438cb0431
[APM] Remove UX app promo callout (#91118)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 10:19:55 +01:00
Søren Louv-Jansen a31cc73ccb
[APM] Add experimental support for Data Streams (#89650)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 10:44:05 +01:00
renovate[bot] 57d9dd1419
Update dependency @elastic/charts to v24.5.1 (#89822)
Updates @elastic/charts to 24.5.1 with some Kibana related fixes:
- align tooltip z-index to EUI tooltip z-index
- external tooltip legend extra value sync
- legend: hierarchical legend order should follow the tree paths


fix #84307

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 09:18:48 +01:00
Nathan L Smith d9abaa180b
Don't clean when running e2e tests (#91057)
I don't think this is necessary, and since it's run before `bootstrap`, the Bazel tools aren't installed so it fails silently.

Example: https://apm-ci.elastic.co/blue/organizations/jenkins/apm-ui%2Fapm-ui-e2e-tests-mbp%2FPR-89647/detail/PR-89647/21/pipeline/124/

Should fix APM E2E failures.
2021-02-10 23:34:36 -06:00
Bohdan Tsymbala e94a164b7e
Initial version of adding artifacts per policy to the manifest. (#89130)
* Initial version of adding artifacts per policy to the manifest.

* Minor renaming to convey the purpose of the variable.

* Added ability to override list item mock data.

* Changed function signature to be more reusable.

* Implementationg of support of artifacts per policy in the manifest data structure.

* Added saved objects migrations.

* Renamed the endpoint to reflect that it's artifacts endpoint.

* Fixed tests.

* Fixed the manifest data.

* Fixed linting errors (result of merge).

* Updated ES mappings for manifest in all test setups.

* Updated hash in the mappings.

* Fixed the typo that lead to failing test.

* Fixed the problem with manifest not being dispatched to policies if there are same artifact names but different content. Artifact name in the ManifestSchema is not unique id, hence added decoded_sha256 to the comparison. Added test case to cover this.

* Fixed the problem with the task flow when failure to dispatch to policies will result in commited manifest and no redispatch on next task run. Changed tests to reflect new flow (actually restored previous flow).

* Forgot to commit changes in mock.

* Made other tests more readable using same varialbe naming pattern.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 16:47:56 +01:00
Shahzad 08111e40d3
[Uptime-UX] Added nav search keywords for uptime and user experience app (#90616) 2021-02-09 15:41:47 -06:00
Dario Gieselaar ac18273df5
[APM] Higher timeout for flaky abort test (#90728) 2021-02-09 14:33:46 +01:00
Søren Louv-Jansen 451d0819bc
Strongly typed EUI theme for styled-components (#90106)
* Strongly typed EUI theme for styled-components

use euiStyled

fix tsc issue

* use relative imports

* remove redundant types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 08:26:36 +01:00
Søren Louv-Jansen be9f7c3dc9
[APM] Export ProcessorEvent type (#90540)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 14:37:32 +01:00
Pierre Gayvallet 3b3327dbc3
Migrate most plugins to synchronous lifecycle (#89562)
* first pass

* migrate more plugins

* migrate yet more plugins

* more oss plugins

* fix test file

* change Plugin signature on the client-side too

* fix test types

* migrate OSS client-side plugins

* migrate OSS client-side test plugins

* migrate xpack client-side plugins

* revert fix attempt on fleet plugin

* fix presentation start signature

* fix yet another signature

* add warnings for server-side async plugins in dev mode

* remove unused import

* fix isPromise

* Add client-side deprecations

* update migration examples

* update generated doc

* fix xpack unit tests

* nit

* (will be reverted) explicitly await for license to be ready in the auth hook

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* restore await on on promise contracts

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* Revert "restore await on on promise contracts"

This reverts commit c5f2fe51

* add delay before starting tests in FTR

* update deprecation ts doc

* add explicit contract for monitoring setup

* migrate monitoring plugin to sync

* change plugin timeout to 10sec

* use delay instead of silence
2021-02-08 10:19:54 +01:00
Nathan L Smith 85e92b5ccd
Remove UI filters from UI (#89793)
* Start moving some stuff

* Move some stuff around

* more

* Transactions label

* some snake casing

* i18n fix

* Remove unused ui filters endpoints

* Updates to select

* remove projections

* Use urlHelpers.push

* License change
2021-02-04 13:27:17 -06:00