Commit graph

607 commits

Author SHA1 Message Date
Shahzad b3499f0849
Added alerting ui mock for jest test (#92604)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 12:55:41 +01:00
Felix Stürmer c116477198
[Logs UI] Round up the end timestamp in the log stream embeddable (#92833)
This fixes the interpretation of the end timestamp in the log stream embeddable such that it rounds it up. Without this a date range of `now/d` to `now/d` would be resolved to a zero-duration time range even though the date picker semantics are "Today".
2021-03-01 08:59:03 +01:00
Sandra Gonzales fa4dda0def
[Metrics UI] use global kibana time for metrics explorer in Default View (#92520)
* use global kibana time for explorer, stop using local storage for time

* fix inventory time
2021-02-25 14:26:34 -05:00
Kerry Gallagher c561a18b1e
[Logs UI] Hide Create Alert option when user lacks privileges (#92000)
* Hide Create Alerts option when lacking permissions
2021-02-25 18:44:47 +00:00
Alejandro Fernández Gómez 004238ac16
[Logs UI] Add default panel title to log stream embeddable (#91817)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 11:23:26 +01:00
Alejandro Fernández Gómez 4d34a13bab
[Logs UI] Replace dependencies in the infra bundle (#91503) 2021-02-19 09:06:33 -05:00
Alejandro Fernández Haro 5342877a32
[HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-18 17:31:18 +00:00
Felix Stürmer 28fa873d21
[Logs UI] Wrap log stream embeddable with proper providers (#91725)
This declares the correct dependencies for the `LogStreamEmbeddable` and replaces parts of the custom provider hierarchy used therein with the common Logs UI `CoreProviders`.
2021-02-18 11:52:14 +01:00
Chris Cowan 0fcf75eef6
[Metrics UI] Fix ignoreLookback behavior for Snapshot API (#91169)
* [Metrics UI] Fix ignore lookback behavoir for Snapshot API

* Removing unused dependancies

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-17 09:45:30 -07: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
Kerry Gallagher aa1f02489e
[Logs UI] Check for privileges with user management links (#91134)
* Wrap users management link with privileges check
2021-02-16 14:50:21 +00:00
Alejandro Fernández Gómez 7fab0e63bc
[Logs UI] Replace custom useInterval with react-use version (#90966)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 16:46:38 -05:00
Kerry Gallagher 711724fad2
[Logs UI] Use useMlHref hook for ML links (#90935)
* Use useMlHref hook for ML related links
2021-02-15 12:50:40 +00:00
Zacqary Adam Xeper 7537326aca
[Metrics UI] Fix passing space ID into anomaly alerts (#91222)
* [Metrics UI] Fix passing space ID into anomaly alerts

* Fix jest
2021-02-11 19:54:28 -05:00
Zacqary Adam Xeper 90049b0dac
[Metrics UI] Update docs link for anomaly alerts (#90981) 2021-02-11 15:24:15 -06:00
Zacqary Adam Xeper 748823f5c4
[Metrics UI] Fix alerts repeatedly firing "recovered" actions (#91038) 2021-02-11 15:46:13 -05:00
Zacqary Adam Xeper 15277e187c
[Metrics UI] Fix alert preview accuracy with new Notify settings (#89939)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 15:04:03 -05:00
Alejandro Fernández Gómez 1fbea8cd78
[Logs UI] Use async search in the log stream page (#90303)
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 21:03:43 +01:00
Zacqary Adam Xeper 65a3f16c0f
[Metrics UI] Fix saving/loading saved views from URL (#90216)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 15:20:09 -05:00
Zacqary Adam Xeper f3debcd084
[Metrics UI] Fix node details overlay title with long host name (#90825) 2021-02-10 14:40:21 -05:00
Felix Stürmer 874960e1c5
[Logs UI] Handle undefined composite key in category dataset response (#90472)
This fixes the handling of Elasticsearch responses that don't contain a composite key when querying for the available category datasets.
2021-02-10 17:13:05 +01:00
Zacqary Adam Xeper 38a6475396
Revert "Revert "[Metrics UI] Add Metrics Anomaly Alert Type (#89244)"" (#90889)
* Revert "Revert "[Metrics UI] Add Metrics Anomaly Alert Type (#89244)""

This reverts commit 8166becc55.

* Fix type error
2021-02-09 21:30:25 -05:00
spalger 8166becc55 Revert "[Metrics UI] Add Metrics Anomaly Alert Type (#89244)"
This reverts commit 0d94968df1.
2021-02-09 17:15:12 -07:00
Zacqary Adam Xeper 0d94968df1
[Metrics UI] Add Metrics Anomaly Alert Type (#89244)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 18:40:18 -05:00
Zacqary Adam Xeper 95948fd5eb
[Metrics UI] Add warning severity to Metric Alerts (#90070) 2021-02-09 15:12:13 -06:00
Sandra Gonzales 1f5d52ea2e
[Metrics UI] Add ability for user to set anomaly threshold (#90313)
* add anomaly threshold configuration to settings

* hide panel if not ml capable

* send threshold value to query

* update license

* update api integration to expect anomalyThreshold to exist

* add some tests to the anomaly queries

* change type to number

* api validate in source update and config for anamolyThreshold and tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 13:28:46 -05:00
Kerry Gallagher 3ad86f1328
[Logs UI] Add setup error telemetry for ML functionality (#90298)
* Add logs ML setup error telemetry
2021-02-09 15:50:00 +00:00
Kerry Gallagher 32ddd5e795
[Logs UI] Show anomalies across both the log rate and categorization ML jobs in a swimlane visualization. (#89589)
* Allow anomalies visualisation to represent anomalies from all jobs

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-02-09 15:28:59 +00:00
Phillip Burch 9684661da4
[Metrics UI] Add ability to filter anomaly detection datafeed (#89721)
* Add null check for empty process data

* Add Ability to filter datafeed for ml jobs

* Merge user-defined query with default query

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 13:28:18 -06:00
Nathan L Smith e4794af33c
TypeScript project references for infra plugin (#90118)
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2021-02-08 08:59:45 -06: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
Brandon Kobel 4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Zacqary Adam Xeper d00266b3ff
[Metrics UI] Fix drawer width while preserving hardware-accelerated transition (#90103) 2021-02-03 10:49:30 -06:00
Lukas Olson a9273ca001
[data.search] Add search session methods to search service contract (#87966)
* [data.search] Add search session methods to search service contract

* Fix types

* Fix tests and switch to cancel

* Update docs

* Fix types/tests

* Fix tests

* Update status of SO before cancelling search requests

* Add API integration test

* Fix types

* Update expiration route to use config defaultExpiration

* Fix test

* Update docs

* New logic for extend

* Remove declare module

* Review feedback

* fix ts

* Remove test that is no longer valid

* Fix undefined bug

* Use DataRequestHandlerContext in maps

* ts

Co-authored-by: Liza K <liza.katz@elastic.co>
2021-02-03 08:08:54 -07:00
Ester Martí Vilaseca 912a67f06f
[Metric UI] Add helper text to of expressions when creating Threshold Alerts (#89750)
* add helptext to of expressions

* Make helptext optional as a prop for of expressions

* Add help text to metric threshold alert form

* Add test for helptext in of expression

* Accept JSX elements as helptext in of expressions

* Remove usage of useEuiI18n and use FormattedMessage component for translations

* Follow writing guidelines and fix typo

* Update translation keys

* Update documentation link

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 15:06:18 +01:00
Chris Cowan cf846bdddf
[Metrics UI][Logs UI] Completely remove GraphQL and Apollo (#89036) 2021-02-02 16:56:40 -07:00
Sandra Gonzales 240a7c3f02
make history drawer positioned absolute (#89630)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 16:55:23 -05:00
Felix Stürmer 7fa30ba33e
[Logs UI] Load <LogStream> entries via async searches (#86899)
This PR replaces the usage of plain HTTP routes to load the log stream entries with async search strategy calls.
2021-02-02 15:42:27 +01:00
Nathan L Smith 5884daeba5
Remove circular dependecy between apm and infra (#89739)
* Move `getTraceUrl` in the APM plugin to `getApmTraceUrl` in the observability plugin and use that instead in infra.
* Remove unused APM plugin depenency in infra.
* Use `pathname` instead of `hash` in infra to apm link to avoid unnecessary redirect.
2021-02-01 14:09:33 -06:00
Sandra Gonzales 16500d89c2
[Metrics UI] remove middle number in legend and adjust calculation of max number (#89020)
* get midpoint of max and min instead of half of max number

* remove middle tick from stepped gradient legend

* use value instead of max values to calculate bounds

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 12:27:36 -05:00
Alejandro Fernández Gómez 53637d0158
[Logs UI] <LogStream /> as a kibana embeddable (#88618)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 14:48:30 +01:00
Casper Hübertz f0717a0a79
[Observability] ActionMenu style fixes (#89547)
* [Observability] Reduced space between title and subtitle

* [Observability] Reduce margin between sections

* [Observability] Reduce list item font size

* [Observability] Remove spacer

* [APM] Changes button style and label

* [Logs] Changes the actions button label and style

* [Logs] Fixes the overlap of actions button and close

* Updated test and snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 10:54:08 +01:00
Kerry Gallagher 42a9490e7b
[Logs UI] Display category in anomalies table (#88677)
* Add category pattern to anomalies table
2021-01-27 17:58:06 +00:00
Ester Martí Vilaseca 289ca57bb5
[Metrics UI] Fix Host Overview boxes in Host Detail page (#89299)
* change from type:gauge to type:top_n in inventory models

* Add test for hostSystemOverview metric

* fix lint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 17:27:34 +01:00
Phillip Burch 2ae2692f2b
Add null check for empty process data (#89187) 2021-01-25 16:04:34 -06:00
Nathan L Smith e5588a129b
Move EUI styled components integration to kibana_react (#86065)
...from xpack_legacy.

Remove the duplicated typings from the observability plugin and only use the ones from kibana_react.

Fixes #78248.
2021-01-25 13:48:35 -06:00
Sandra Gonzales 76b23f17e2
add custom metrics to node tooltip (#88545)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 14:32:35 -05:00
Mikhail Shustov b3a9754394
[Core] Explicit typings for request handler context (#88718)
* move context to server part. couple with RequestHandlerContext

Context implementation will be simplified in follow-up.

* adopt core code

* adopt bfetch code

* adopt data code

* adopt search examples

* adopt vis_type_timelion

* adopt vis_type_timeseries

* adopt plugin functional tests

* adopt actions

* adopt alerting plugin

* adopt APM plugin

* adopt beats_management

* adopt case plugin

* adopt cross_cluster_replication

* adopt data_enhanced

* adopt event_log

* adopt global_search

* adopt index_management

* adopt infra

* adopt licensing

* adopt lists

* adopt logstash

* adopt reporting

* adopt observability

* adopt monitoring

* adopt rollup

* adopt so tagging

* adopt security

* adopt security_solutions

* adopt watcher

* adopt uptime

* adopt spaces

* adopt snapshot_restore

* adopt features changes

* mute error when null used to extend context

* update docs

* small cleanup

* add type safety for return type

* refactor registerRouteHandlerContext type

* update docs

* update license header

* update docs

* fix type error. fetch body does not accept array of strings

* fix telemetry test

* remove unnecessary ts-ignore

* address comments

* update docs
2021-01-21 15:20:22 +01:00
Kerry Gallagher 53f4b21a81
[Logs UI] Add sorting capabilities to categories page (#88051)
* Add sorting capabilities to categories page

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-01-18 14:12:29 +00:00
Jonathan Budzenski 51ba94d3e5
[dev] Replace sass-lint with stylelint (#86177)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dave Snider <dave.snider@gmail.com>
2021-01-15 11:52:29 -06:00