kibana/x-pack/plugins/apm/server/routes
Oliver Gupte b302565567
[APM] Service maps anomaly detection integration by environment (#70932)
* Closes #69480 & #70419.
- Adds anomaly detection integration to service maps backed by apm ML jobs per environment
- Loads transaction stats and anomalies for each transaction types
- Renders a selector in the popop to choose a transaction type to view stats

* - implements original anomaly detection integration design for service maps popover
- only aggregates transaction KPIs and anomaly scores for transaction.type = "request" or "page-load"
- supports environment filter 'All' option to display data from all APM anomaly detection jobs
- handle case where popover metrics don't exist for services outside the current environment filter

* fixes some CI errors

* Simplified messaging for service popop with not data in the current environment

* PR feedback, renamed max anomalies -> service anomalies including the file name

* - defines custom_settings.job_tags.apm_ml_version in ML job creation,
  then filters for it when returing valid APM ML jobs

* changes shape of of service anomalies from an array to a object keyed by serviceName

* removes the url encoding from ML job link href to how it was previously.

* PR feedback

* Popover no data state simplified:
- renders the "no data" message as plain text instead of in a callout
- hides the 'Anomaly detection' section if there is not anomaly data.

* Fixes filtering bug when user selects 'Environment: Not defined'. Now
filters properly by filtering for docs where service.environment does
not exist

* filters jobs fetched in the settings page by `job.custom_settings.job_tags.apm_ml_version`

* Fixed bad import from last upstream merge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 05:22:34 -07:00
..
create_api chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00
settings [APM] Add warning to notify user about legacy ML jobs (#71030) 2020-07-09 08:45:13 +02:00
create_apm_api.ts [RUM Dashboard] New rum services api to replace usage of get services API (#70746) 2020-07-08 11:26:34 +02:00
create_route.ts
default_api_types.ts
errors.ts [APM] Add error rate chart to Errors overview and detail views (#67327) 2020-06-18 12:31:22 +02:00
index_pattern.ts [APM] Don't fetch dynamic index pattern in setupRequest (#70308) 2020-07-02 15:19:21 +02:00
metrics.ts
observability_dashboard.ts [APM]Create API to return data to be used on the Overview page (#69137) 2020-06-26 11:11:42 +02:00
rum_client.ts [RUM Dashboard] New rum services api to replace usage of get services API (#70746) 2020-07-08 11:26:34 +02:00
security.ts apply prettier styles 2020-05-22 09:08:58 +02:00
service_map.ts [APM] Service maps anomaly detection integration by environment (#70932) 2020-07-09 05:22:34 -07:00
service_nodes.ts APM TypeScript improvements (#68572) 2020-06-08 17:56:06 -05:00
services.ts chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00
traces.ts apply prettier styles 2020-05-22 09:08:58 +02:00
transaction.ts apply prettier styles 2020-05-22 09:08:58 +02:00
transaction_groups.ts apply prettier styles 2020-05-22 09:08:58 +02:00
typings.ts [APM] Use licensing from context (#70118) 2020-06-29 08:23:52 -05:00
ui_filters.ts [APM] Don't fetch dynamic index pattern in setupRequest (#70308) 2020-07-02 15:19:21 +02:00