Commit graph

31260 commits

Author SHA1 Message Date
Patrick Mueller
5b7270541c
[alerting] initial index threshold alertType and supporting APIs (#57030)
Adds the first built-in alertType for Kibana alerting, an index threshold alert, and associated HTTP endpoint to generate preview data for it.

addresses the server-side requirements for issue  https://github.com/elastic/kibana/issues/53041
2020-02-28 11:48:28 -05:00
Chris Cowan
29fbe395b7
[Metrics UI] Use CPU Usage limits for Kubernetes pods when available (#58424)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 09:42:52 -07:00
Pierre Gayvallet
2b9dc43158
add dynamic property to type definition (#58852) 2020-02-28 16:39:06 +01:00
Frank Hassanabad
7aaf58c86c
Added Security Intelligence And Analytics for prepackaged_rules (#58808) 2020-02-28 08:38:23 -07:00
Dario Gieselaar
f86c75893b
[APM] Update tsconfig.json template in optimization script (#58731)
* [APM] Update tsconfig.json template in optimization script

The location of the cypress tests has changed, and those files are no longer excluded in the APM type check. This change updates the tsconfig.json template to exclude the new location.

* Update link in readme
2020-02-28 16:32:46 +01:00
James Gowdy
38067da7ac
[ML] Fixing annotations alias checks (#58722) 2020-02-28 14:30:04 +00:00
Larry Gregory
91330d2493
Spaces - NP updates for usage collection and capabilities (#57693)
* remove kibanaIndex from LegacyAPI

* moving capabilities, adding tests

* moving usage collection

* cleanup

* don't toggle capabilities on unauthenticated routes

* reintroduce exception handling

* pipe dat config

* start addressing PR feedback

* fix CoreSetup's generic type

* fix usage collector tests

* PR review updates

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 09:06:48 -05:00
Ryan Keairns
3f7abe3c55
Add alt attribute to images on the Add data page (#58767)
* add alt attr to images

* add alt attr to images
2020-02-28 07:28:31 -06:00
Walter Rafelsberger
8f9004b661
[ML] Transforms: NP ui/imports migration (#58469)
- Migrates ui/* imports to NP.
- Uses direct React mounting instead of Angular.
- Service Cleanup.
2020-02-28 14:27:57 +01:00
Christos Nasikas
967bef7b38
[SIEM][CASE] Init Configure Case Page (#58121)
* [SIEM][CASE] Init configure cases

* [SIEM][CASE] Translate header title

* [SIEM][CASE] Add back link

* [SIEM][CASE] Add default options to header page

* [SIEM][CASE] Create configure cases page redirections and links

* [SIEM][CASE] Add configure cases button

* [SIEM][CASE] Change translation variable

* [SIEM][CASE] Create wrappers

* [SIEM][CASE]Create section wrapper

* [SIEM][CASE] Switch to new wrapper

* [SIEM][CASE] Add translations

* [SIEM][CASE] Add connectors dropdown component

* [SIEM][CASE] Add connectors component

* [SIEM][CASE] Show connectors

* [SIEM][CASE] Create add new connector button

* [SIEM][CASE] Change values

* [SIEM][CASE] Use state for connectors dropdown

* [SIEM][CASE] Remove unnecessary attribute

* [SIEM][CASE] Remove timeline in configuration page

* [SIEM][CASE] Remove text from gear button

* [SIEM][CASE] make show timeline more generic so we can re-use if need it

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 13:59:43 +02:00
Angela Chuang
5046a3a68d
clean up snapshot (#58724) 2020-02-28 10:13:41 +00:00
Aleh Zasypkin
bd92b7d56f
Implement HTTP Authentication provider and allow ApiKey authentication by default. (#58126) 2020-02-28 10:09:41 +01:00
Pierre Gayvallet
ce45647ea2
block SO setup API calls after startup (#58718) 2020-02-28 09:20:51 +01:00
Søren Louv-Jansen
913afb3bad
Update APM readme 2020-02-28 08:54:50 +01:00
spalger
8a8af5a57c skip flaky suite (#58662) 2020-02-27 23:37:39 -07:00
spalger
511a9c2bee Revert "Prep agg types for new platform (#57064)"
This reverts commit 0cede6a705.
2020-02-27 22:18:00 -07:00
Nathan Reese
015c7abbca
[Maps] remove getMetricFields from AbstractESSource (#58667)
* [Maps] remove getMetricFields from AbstractESSource

* do not use formaters for count and unique count

* fix jest test
2020-02-27 21:49:33 -07:00
Spencer
4fd3b45b44
fix some missing awaits in functional tests (#58807) 2020-02-27 20:22:42 -07:00
igoristic
b6dfcc7ad7
Removed unused indices (#57903)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 21:46:45 -05:00
Luke Elmers
0cede6a705
Prep agg types for new platform (#57064) 2020-02-27 19:17:07 -07:00
Melissa Alvarez
8c3d71b370
[ML] NP: migrate server (#58680)
* remove obsolete legacy server deps

* licensePreRoutingFactory uses licensing plugin rather than legacy xpack

* move schemas to dir in routes

* use NP license check method for license check

* store license data in plugin for passing to check

* create server plugin files in NP plugin dir

* remove dependency on legacy xpack plugin

* add sample data links first step

* move all server dirs from legacy to np dir

* fix requiredPlugin spaces name and update import routes

* delete unnecessary files and add sample data links

* update license and privilege check tests

* add routeInit types
2020-02-27 21:15:08 -05:00
spalger
facae44f5b skip flaky suite (#53888) 2020-02-27 18:03:04 -07:00
spalger
467280232a Revert "[SIEM] Fix Timeline registerProvider to be called only when it's needed (#58051)"
This reverts commit 2a03dffdad.
2020-02-27 17:19:35 -07:00
spalger
07c22f13b7 skip flaky suite (#58785) 2020-02-27 15:23:54 -07:00
Søren Louv-Jansen
d474ccf244
[APM] Fix timeout in APM setup (#58727)
* [APM] Fix timeout in APM setup

* Update plugin.ts
2020-02-27 22:55:02 +01:00
patrykkopycinski
2a03dffdad
[SIEM] Fix Timeline registerProvider to be called only when it's needed (#58051) 2020-02-27 22:45:53 +01:00
Spencer
841e64e0c1
run jest with --detectOpenHandles on CI to figure out what i… (#58543)
* run jest with `--detectOpenHandles` on CI to figure out what is happening with pauses

* focus tests on jest integration

* force kill child processes in config reload test

* skip flaky suite

* increase timeout for looking for installed packages

* run all tests again
2020-02-27 14:19:24 -07:00
Yuliia Naumenko
a896515195
Add beta badge to alert and actions UI components (#58691)
* Added Beta badge to Alerts and Actions UI components

* Fixed failing test

* Fixed FT

* Fixed labels
2020-02-27 12:43:23 -08:00
Chris Roberson
f62bda0b17
[Monitoring] Handle setup mode if security is disabled (#53306)
* Handle setup mode if security is disabled

* Rename so the test actually runs, and fix/add tests

* Use es.js api instead of transport.request

* Revert "Use es.js api instead of transport.request"

This reverts commit ae0e48f8bd.

* Explicitly handle security not enabled

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 15:34:16 -05:00
Alexey Antonov
29e984a61c
[Step 2] ui/persisted_state 👉 src/plugins/visualizations (#58501)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 23:10:39 +03:00
Maja Grubic
c97bc86c35
[Dashboard] Show empty screen with error message if no permissions (#58584)
* Show empty screen with error message if no permissions

* Renaming function

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 18:47:23 +00:00
Nathan Reese
dc2dcd8abe
[Maps] remove agg_types (#58658) 2020-02-27 09:57:48 -07:00
Zacqary Adam Xeper
390165ba03
[Metrics Alerts] Create Metric Threshold Alert Type and Executor (#57606)
* [Infra] Add basic backend for metric threshold alerts

* Define separate fired/recovered action groups

* Allow alerting on arbitrary search fields besides host.name

* Add list and delete endpoioints

* Add groupBy alerts

* Remove extraneous  routes and SavedObject logic

* Remove additional SavedObject code

* Remove renotify logic from executor

* Fix action group type

* Fix scheduledActions typecheck

* Fix i18n

* Migrate alerting to new platform

* Add alerting to infra dependencies

* Add comment about future use

* Adjust alert params tm names to sync with UI; default to Entire Infrastructure alert

* Add support for between comparator

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 10:47:59 -06:00
Kaarina Tungseth
235b3535e2
[DOCS] Consolidates map content (#57736)
* [DOCS] Consolidates map content

* Section reorganization

* Navigation options

* Added images and cleaned up text

* Added tilemap.html to redirects

* Review comments
2020-02-27 10:40:07 -06:00
Chris Cowan
43be649f50
[Metrics UI] Ensure inventory view buckets never drop below 60 seconds (#58503)
* [Metrics UI] Ensure inventory view buckets never drop below 60 seconds

* Fixing tests

* Fixing tests... again

* Fixing tests... rounding issue?

* Trying to fix the tests... again

* updating test for custom metric

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 09:32:44 -07:00
Lisa Cawley
2a756bbb81
[DOCS] Fixes outdated monitoring links (#58556) 2020-02-27 08:28:08 -08:00
Yuliia Naumenko
515348438b
Fixed connector and alerts view flashing empty state before loading list (#58693) 2020-02-27 08:14:45 -08:00
Devin W. Hurley
a06cc31583
[SIEM] [Detection Engine] Remove unnecessary ts-ignores (#58689)
* fixes from comments on previous PR

* replaces any with unknown, adds test to show how optional chaining of array items can result in undefined even though typescript says its not
2020-02-27 11:09:43 -05:00
Matthias Wilhelm
a8380cf52b
[Discover] Fix incorrect filter generated by "Filter for field present" (#58586)
* Fix _exists_ filter handling 

* Add functional test
2020-02-27 16:08:37 +01:00
Anton Dosov
2b4a9fd7d7
[State Management] State syncing helpers for query service I (#56128)
Before this pr:

Discover, Visualise and Dashboard in setup phase create own state containers which watch for pinned filters, time and refresh interval changes. This watching and state comparisons happen for each plugin separately and not only when a specific app is mounted. So we ended up with a bunch of similar synchronous work which happens every time query services state changes.

After this pr:

Query service exposes observable to watch for changes (state$). Discover, Visualise and Dashboard use this observable for sub url tracking instead of creating its own.
2020-02-27 12:08:08 +01:00
ChanghunKang
0ef17ca0af
[APM] Change naming for pods to "Kubernetes pods". (#54446) (#54538) 2020-02-27 11:03:35 +01:00
Liza Katz
a0ffce715a
Fix plugin path (#58649) 2020-02-27 08:58:28 +00:00
patrykkopycinski
320e292ea8
[SIEM] apollo@3 (#51926) 2020-02-27 09:25:37 +01:00
Maryia Lapata
92840fe218
[NP] Import saved objects styles directly (#58208)
* Import styles for saved objects

* Rename index.scss

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 10:35:44 +03:00
Matthias Wilhelm
4bc6aa6f87
[Discover] Add hover title on sidebar fieldname (#58384)
* Convert tooltip to use EuiToolTip

* Update tests
2020-02-27 08:26:40 +01:00
Alexey Antonov
7fdff345a4
[Step 1] ui/persisted_state 👉 src/plugins/visualizations (#58324)
* ui/persisted_state 👉 src/plugins/visualizations

Part of #46926

* fix JEST

* remove sinon from tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 10:19:17 +03:00
Liza Katz
6ecba58138
Typescript es-query functions (#57473)
* TS Functions

* Rename index.ts

* tsing

* JSON Value

* ts ignore

* TS adjustments

* context?.nested?.path

* Code review

* Import LiteralTypeBuildNode

* Fix jest tests

* revert test

* TS fix IFieldType

* Remvoe unnecessary casting

* range types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-27 06:41:07 +00:00
Matthias Wilhelm
90cb7a9be9
[Discover] Move discover/saved_searches to Kibana platform (#58476) 2020-02-27 06:17:54 +01:00
Andrew Cholakian
460d39772b
[Uptime] Fix flakey test by await-ing refreshes in tests (#58656)
Fixes https://github.com/elastic/kibana/issues/58541
2020-02-26 20:13:56 -06:00
Devin W. Hurley
47ce54c431
add back the null check to convertToSnakeCase function (#58675) 2020-02-26 20:31:13 -05:00