Commit graph

273 commits

Author SHA1 Message Date
Shahzad edbf6b8ce9
[UX] Fixed error rate, made sure all filters are applied (#79222)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 18:48:35 +02:00
Cauê Marcondes ffc1caa2d2
[APM] Add default message to alerts. (#78930)
* adding default message

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 09:18:15 +02:00
Shahzad de130abfbc
[UX] Add core web vitals in obsv homepage (#78976) 2020-10-05 19:15:13 +02:00
Nathan L Smith 13a737e675
Storybook and Jest cleanup (#79305)
* Fix all broken stories
* Get rid of all Jest warnings
* Remove `@ts-expect-error`s added for JSON imports and fix their type errors
* Convert some stories to [Component Story Format](https://storybook.js.org/docs/react/api/csf)
* Replace story for Service Map with many external services with one for the popover with many external services
* Center and fit cytoscape maps in stories
* Rename some files to snake_case
2020-10-05 09:18:24 -05:00
Alejandro Fernández Haro 9973667f4c
[Usage Collection] [schema] apm (#79000) 2020-10-02 19:24:08 +01:00
Søren Louv-Jansen 4ddcd1d2a6
[APM] Fix anomalies not showing up on transaction charts (#76930)
* [APM] Fix anomalies not showing up on transaction charts

* Added API tests to check transaction groups charts for anomaly data

* Improve test names and assertions from PR feedback

* Updated the transaction groups chart API to make `environment` a
required param while making `uiFilters` optional

* updates the basic API tests for transaction_groups/charts with the
required `environment` param

* makes uiFIltersES default to [] on core setup and removes SetupUIFilters type

* fixes vertical shade

* - replaces uiFiltersES with esFilter & uiFilters and cleans up related code around these
- deduplicates the required environment in the transaction_groups/charts API

* updates basic apm_api_integration tests

* pr feedback

* updates api test snapshots with correct anomaly data

* removed environment query param from useTransactionCharts and ensures
it's included in uiFilters returned from useUrlParams

Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2020-10-02 00:45:50 -07:00
Shahzad 8406e04a42
Fix long tasks query (#79099) 2020-10-01 22:49:31 +02:00
Shahzad 07ebb81a79
[UX] Improve page-load axis (#78392)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 10:16:30 +02:00
Alejandro Fernández Haro 65cf6393c7
[Task names in TaskManager] Rename "telemetry" to "usage" (#78129)
* [Task names in TaskManager] Rename "telemetry" to "usage"

* Revert task IDs but leaving renamed titles

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 08:26:14 +01:00
Shahzad 0776bf7a3e
[UX] Improve page responsive (#78759)
* WIP

* add resizeable panel

* Improve page responsiveness

* Improve page responsiveness

* fix types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 07:40:27 +02:00
Spencer 06d1628a00
[ts] enable "resolveJsonModule" and disable existing failures (#78855)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-30 15:44:43 -07:00
Cauê Marcondes 7b90333628
[APM] Service Map: Not Defined option doesn't work properly (#77757)
* Service Map:  option doesn't work properly

* addressing PR comment

* addressing PR comment

* adding unit tests

* addressing PR comment

* fixing tests

* addressing PR comment

* addressing PR comment

* addressing PR comment

* addressing PR comment

* addressing PR comment

* add filter by environment

* addressing PR comment

* fixing API tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 12:36:55 +02:00
Shahzad a31dd64778
[UX] Add percentile selector (#78562) 2020-09-30 10:24:38 +02:00
Nathan L Smith c2ef407d04
OpenTelemetry icons and data telemetry (#78499)
Add OpenTelemetry agent names and and icon. OpenTelemetry services will have the same icon as the corresponding APM services.

Services that report "otlp" as their agent name use the OpenTelemetry icon.

The OpenTelemetry agents are now collected in the data telemetry along with the other agent names.

Change "ratio" in the telemetry to a float.
2020-09-29 14:33:29 -05:00
Shahzad fdee5e59a7
[CSM] Fix core vital legend background (#78273)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 13:54:43 +02:00
Dario Gieselaar 87ad564b59
[APM] Use transaction metrics for distribution charts (#78484)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 13:00:32 +02:00
Shahzad d7a8641f3a
[CSM] Js errors (#77919)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:36:38 +02:00
Cauê Marcondes 966f00ac59
[APM] Alerting: Add global option to create all alert types (#78151)
* adding alert to service page

* sending on alert per service environment and transaction type

* addressing PR comment

* addressing PR comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:12:58 +02:00
Oliver Gupte 1dd0c6a570
[APM] Service maps grouped external resource nodes (#78136)
* Closes #78135 by implementing node grouping on service map data before it's rendered in the Cytoscape.

* Truncates resource list items and updates api test snapshot

* Added type for ConnectionElement rather using an ad hoc type, removed some unneeded ts-ignores
2020-09-24 07:48:24 -07:00
Shahzad 3618cef1a4
[UX] Update csm app name to UX (#78179) 2020-09-24 13:26:00 +02:00
Shahzad 477f6a182e
[CSM] Fix pie chart legend (#78253) 2020-09-24 09:10:00 +02:00
Shahzad 9276a16db7
[CSM] Url search (#77516)
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-23 12:51:39 +02:00
Matthew Kime 533309dc2c
Remove [key: string]: any; from IIndexPattern (#77968)
* Remove [key: string]: any; from IIndexPattern
2020-09-22 18:03:22 -05:00
Shahzad 7544a33901
[CSM] Use stacked chart for page views (#78042) 2020-09-22 18:00:19 +02:00
Dario Gieselaar 7053ad1a47
[APM] Use transaction metrics for transaction error rate (#78009)
Closes #77716.
2020-09-22 09:16:58 +02:00
Oliver Gupte f015beae13
[APM] Replace custom map with link to Client Side Monitoring (#77458)
* Closes #48538 by removing the average duration by country custom geo map.

* adds link to client side monitoring below the rum charts

* removes unused translations

* Removes RUM-specific chart for Avg Duration By Browser

* Replace link under charts with CallOut above charts with link to Client Side Monitoring

* removes api integration tests for  avg_duration_by_browser and usused i18n translations

* updates to copy in the CSM callout
2020-09-21 14:57:20 -07:00
Dario Gieselaar ce7922be95
[APM] Use model_plot as a signal for anomaly scores (#77756) 2020-09-21 12:18:45 +02:00
Larry Gregory 9f3992f6c2
Grouped features for space management (#74151)
* Grouped features for space management

* Apply suggestions from code review

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Address PR Feedback

* docs changes

* updating types/docs

* update APM feature name

* Reintroduce extraAction following EUI update

* change ordering of infra features, and render callout for management category

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 12:30:59 -04:00
Shahzad e7a8aed594
[CSM] Fix total blocking time formatting (#77751) 2020-09-18 15:53:42 +02:00
Dario Gieselaar 217276e8a9
[APM] Align APM severity levels with ML (#77818) 2020-09-18 14:02:37 +02:00
Cauê Marcondes e7b0e28237
[APM] Track usage of Gold+ features (#77630)
* adding license check

* fixing api test

* refactoring
2020-09-18 10:14:13 +02:00
Søren Louv-Jansen fb6292965b
[APM] Add transaction error rate alert (#76933) 2020-09-17 22:38:14 +02:00
Cauê Marcondes 9c90c14b25
[APM] Show accurate metrics for containerized applications (#76768)
* adding cgroup fields

* calculate the memory based on the cgroup fields otherwise use the system fields

* updating script

* adding api tests

* using cgroup fields on service map

* addressing PR comment

* fixing unit test

* fixing test

* changing api tests to use snapshot

* removing inactive_files from calculation

* fixing test

* refactoring painless script

* addressing PR comment

* addressing pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 18:13:06 +02:00
Shahzad 5be36b799d
[CSM Dashboard] Remove points from line chart (#77617)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 13:02:20 +02:00
Dario Gieselaar 8169ed173b
[APM] Metrics-powered UI (#73953)
* [APM] Optimize service overview queries

* Review feedback

* Use correct indices/filters for service overview metrics

* [APM] Optimize traces overview

* Separate queries into separate file

* Support union types for aggregations

* [APM] Don't fetch dynamic index pattern in setupRequest

We don't need a dynamic index pattern for parsing the filters from the query bar. Additionally, instead of fetching uiIndices in `getParamsForSearchRequest`, we can use `indices` that we already fetched in `setupRequest`.

* use join utility function to merge requests

* Correct path for UI_SETTINGS import

* Query transaction indices in getEnvironments()

* [APM] Introduce apm.types

Instead of using a combination of index + terms filters on processor.event, add a top-level setting that allows you to define a type, which can be a processor event type, agent configuration or custom link. This allows us to more easily compose queries.

* Set size of terms agg on error rate aggregation

* Metrics

* Use separate clients for apm events and other uses

* Separate function for calculating relative impact

* use UIProcessorEvent type in IURLParams type

* Remove unused import

* Split out strategy in helper functions

* Use cloneDeep in apmEventClient.search

* Consistent usage of getUseAggregatedTransactions

* Update traces functional test

* Update API tests

* Update responses for functional tests

* Review feedback

* Fix type for filter/filters aggregation

* Review feedback

* Rename useAggregatedTransactions > searchAggregatedTransactions

* Use correct route name for transaction redirect page

* Closes #67744.

* Review feedback; offer other strategies than 'auto'

* Fix functional tests

* [APM] Always load esarchives from common

Instead of requiring every test suite to store its archives under {suite}/fixtures/es_archiver, always load them from common/fixtures/es_archiver.

* Update script

* Make sure tests pass

* Update snapshots for API tests

* Filter for transaction.root when fetching top traces

* Make sure must_not clause is formatted correctly

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 19:20:08 +02:00
Dario Gieselaar 78774e4925
[APM] Disable incremental builds for APM-only type check (#77581) 2020-09-16 16:50:45 +02:00
Shahzad 10b192b5b0
[RUM Dashboard] User experience metrics (#77384)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 15:34:28 +02:00
Cauê Marcondes 89af7e676d
showing service maps when filte by environment not defined (#77483) 2020-09-16 10:40:58 +02:00
Dario Gieselaar 520d348bf8
[APM] Service inventory redesign (#76744)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 16:10:04 +02:00
Larry Gregory 2e34eb239f
Hide management sections based on cluster/index privileges (#67791)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 09:30:47 -04:00
Mikhail Shustov bcaffba12b
Remove legacy SavedObjects (#76852)
* remove legacy SO integration

* cleanup integration in the legacy platorm

* remove so schema

* update docs

* remove leftovers, update docs

* update docs after merge master
2020-09-08 22:01:31 +02:00
Shahzad e827a6761e
[RUM Dashboard] Added rum core web vitals (#75685)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 17:19:48 +02:00
Cauê Marcondes 7f323a19bb
[APM] Use the outcome field to calculate the transaction error rate chart (#75528)
* replacing error rate to use event.outcome field

* addressing PR comment

* fixing api test

* fixing API test

* fixing api tests

* rmeoving snapshot from api test

* testing error rate

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-07 11:23:22 +02:00
Dario Gieselaar 113936a649
[APM] Use observer.hostname instead of observer.name (#76074) 2020-09-07 11:11:00 +02:00
Nathan L Smith 4d4eae4413
[APM] Fix overlapping transaction names (#76083)
...in the table and the header. Did this by adding `word-break: break-all` to them.

Also:

* Rename List to TransactionList
* Add stories for TransactionList and ApmHeader
* Add missing type information to transactions based on sample transaction

Fixes #73960.
2020-09-04 15:10:52 -05:00
Shahzad 33d366a5e9
[RUM Dashboard] Rum usability improvement (#76024)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 14:05:20 +02:00
Søren Louv-Jansen e0f4775b78
[APM] @ts-error -> @ts-expect-error (#76492)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 06:52:16 +02:00
Wylie Conlon 26d16dd093
[APM] Update aggregations to support script sources (#76429)
* [APM] Update aggregations to support script sources

* Fix whitespace

* Fix checks

* Explicitly require field in projection

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2020-09-03 12:23:29 -04:00
Dario Gieselaar 3e077973e8
[APM] Immediately return terms for unbound queries (#74543)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 16:11:12 +02:00
Shahzad 093f588720
[RUM Dashboard] Use median values instead of averages to display page load times (#76407) 2020-09-02 15:35:33 +02:00