Commit graph

295 commits

Author SHA1 Message Date
Zacqary Adam Xeper e2d945ff0b
[Metrics UI] Add framework for recovery messaging to metric threshold alerts (non-functional) (#65339) 2020-05-11 14:04:57 -05:00
Jason Rhodes 0ae5e24d01
Initializes alert form with existing values (for editing) (#65926) 2020-05-11 09:56:37 -04:00
Chris Cowan 1c6e6cb7b7
[Metrics UI] Fix p95/p99 charts and alerting error (#65579)
* [Metrics UI] Fix p95/p99 charts and alerting error

- Fixes #65561

* Fixing open in visualize for percentiles

* Adding test for P95; refactoring to use first consitently
2020-05-08 10:55:43 -07:00
Chris Cowan df0f0c341f
[Metrics UI] Fix isAbove to only display when threshold set (#65540) 2020-05-07 11:49:27 -07:00
Felix Stürmer 8a8647ab95
[Logs + Metrics UI] Prevent component errors from breaking the whole UI (#65456) 2020-05-07 11:33:50 +02:00
Alejandro Fernández f53b147097
[Logs UI] Disable search bar when live stream is on. (#65491) 2020-05-07 11:15:47 +02:00
Alejandro Fernández 8581ba8c38
[Logs UI] Add tests to the log alert executor (#64881) 2020-05-06 17:37:30 +02:00
Michail Yasonik 35e10273d3
New nav (#64018)
Notably, also removes aria-hidden from many visualizations
2020-05-05 23:14:14 -05:00
Spencer ee270c7c3f
disallow external imports to src/core/utils (#64852) 2020-05-05 14:56:22 -07:00
Zacqary Adam Xeper a467fe5ffd
[Metrics UI] Debounce onChange in alert creation UI (#65167) 2020-05-05 13:57:25 -05:00
Chris Cowan 7d5aa80976
[Metrics UI] Migrating Docker network fields (#65133) 2020-05-05 11:34:19 -07:00
Chris Cowan 0b202dc5dd
[Metrics UI] Add 99th and 95th percentiles to Metric Explorer (#64699)
* [Metrics UI] Add 99th and 95th percentiles to Metric Exploer Aggregations

* Removing unused dependency; fixing types
2020-05-05 09:40:34 -07:00
Zacqary Adam Xeper add56be7d6
[Metrics UI] Require filterQuery to be ES JSON (#64937) 2020-05-05 10:33:41 -05:00
Jason Rhodes 9be4ec049b
Removes legacy infra plugin and moves saved objects registration to NP (#64848)
* Removes legacy infra plugin and moves saved objects to NP

* Removes unnecessary legacy getLibs method

* Reverts saved objects to "single" namespace mode
2020-05-05 11:05:02 -04:00
Yuliia Naumenko 2f8906926b
Added support for docLinks plugin in Connectors forms and missing save capabilities for modal dialog (#64986)
* Added support for docLinks plugin in Connectors forms and missing save capabilities for modal dialog

* Fixed tests

* Extended alert context with application capabilities

* Fixed due to comments

* Fixed typecheck

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 07:52:45 -07:00
Chris Cowan 8adc272f0c
[Metrics UI] Remove APM Hard Dependency (#64952)
* [Metrics UI] Remove APM Hard Dependency

* removing unused variable

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 05:31:19 -07:00
Dmitry Lemeshko 43205ec8c7
[functional/page_objects] wait for infra ops page is loaded (#65050)
* [functional/page_objects] wait for infra ops page is loaded

* put waiting in PO method
2020-05-05 11:47:55 +03:00
Marco Vettorello 2d4dc801c3
Update dependency @elastic/charts to v19.1.2 (#64759)
* build: upgrade @elastic/charts to 19.0.0

* refactor: onBrushEnd breaking changes

* fix: missing onBrushEnd argument changes

* fix: update ech to 19.1.1

* fix: lens onBrushEnd breaking changes

* update to 19.1.2
2020-05-04 18:42:58 -05:00
Kerry Gallagher 5bcf2c8b89
[Logs UI] [Alerting] Alerts management page enhancements (#64654)
* Ensure adding / editing log alerts works from the alerts management page
2020-05-04 13:03:54 +01:00
Alejandro Fernández 4c57ebb7cc
[Logs UI] Tweak copy in log alerts dialog (#64645) 2020-05-04 13:37:54 +02:00
Felix Stürmer 39e31d6123
[Logs UI] Add dataset filter to ML module setup screen (#64470)
This adds the ability to filter the datasets to be processed by the ML jobs on the setup screen.
2020-05-04 13:29:28 +02:00
Phillip Burch 3cef8e6f30
[Metrics UI] Add inventory metric threshold alerts (#64292)
* Add new inventory metric threshold alert

* Add missed file

* Fix some types

* Convert units on client and executor.

* Move formatters to common. Properly format metrics in alert messages

* Style changes

* Remove unused files

* fix test

* Update create

* Fix signature

* Remove old test. Remove unecessary import

* Pass in filter when clicking create alert from context menu

* Fix filtering

* Fix more types

* Fix tests

* Fix merge

* Fix merge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-30 16:53:56 -05:00
Oliver Gupte 16ba937bae
[APM] Client new platform migration (#64046)
* migrate files from legacy path to new plugin path

* update file paths to reflect migrated files

* move minimal legacy client files back to legacy path in order to run kibana

* Completes the full cutover to the new kibana platform removing all shims and legacy adapters.

* Adds APM to ignored list for casing check.

* - moves public/utils/pickKeys.ts to common/utils/pick_keys.ts
- exposes getTraceUrl as a plugin static export of apm/public and updates import in infra
- fixes FeaturesPluginSetup import in apm/public app
- renames get_apm_index_pattern_titles -> get_apm_index_pattern_title
- getApmIndexPatternTitle is now a synchronous getter function
- removes unused comments and xpack.apm.apmForESDescription i18n translations

* Moves automatic index pattern saved object creation from
plugin start to when the Home screen first renders

* removed unnecessary legacy css imports

* fixed ci issues by:
- moving readOnly badge, and help extension setup to occure only
  when apm app is mounted
- registering saved object types
- also moved createStaticIndexPattern from a react useEffect on the
  APM home screen to when the app is mounted
2020-04-30 13:08:50 -07:00
Chris Cowan 0399f70050
[Metrics UI] Add Charts to Alert Conditions (#64384)
* [Metrics UI] Add Charts to Alert Conditions

- Reorganize files under public/alerting
- Change Metrics Explorer API to force interval
- Add charts to expression rows
- Allow expression rows to be collapsable
- Adding sum aggregation to Metrics Explorer for parity

* Adding interval information to Metrics Eexplorer API

* Moving data hook into the expression charts component

* Revert "Adding interval information to Metrics Eexplorer API"

This reverts commit f6e2fc11be.

* Reducing the opacity for the threshold areas

* Changing darkMode to use alertsContext.uiSettings
2020-04-30 11:52:11 -07:00
Zacqary Adam Xeper c131cb341b
Refactor action messaging to report on No Data state (#64365) 2020-04-30 10:51:05 -05:00
Zacqary Adam Xeper 1669a10441
[Metrics UI] Fix alerting when a filter query is present (#64575) 2020-04-29 15:36:37 -05:00
Tiago Costa 7354ff6676
Revert "chore(NA): add async import into infra plugin to reduce apm bundle size (#63292)" (#64764)
This reverts commit 30439f6df0.
2020-04-29 16:38:41 +01:00
Tiago Costa 30439f6df0
chore(NA): add async import into infra plugin to reduce apm bundle size (#63292)
* chore(NA): async import on infra plugin in order to avoid infra plugin on apm

* chore(NA): add async import into infra plugin to reduce apm bundle size

* docs(NA): including small note

* fix(NA): pass pluginsSetup as an argument

* chore(NA): fix missing type

* chore(NA): split register in two functions

* chore(NA): only register once

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 01:29:38 +01:00
Chris Cowan 4a04adf812
[Metrics UI] Fixes for editing alerts in alert management (#64597)
* [Metrics UI] Fixes for editing alerts in alert management

* Change EuiFieldSearch to use onChange instead of onSearch

* Fixing groupBy

* Fixing the correct groupBy
2020-04-28 08:33:32 -07:00
Felix Stürmer 2fba7ed9f7
[Logs UI] Reimplement log source configuration routes in plain HTTP+JSON (#64021) 2020-04-28 11:12:50 +02:00
Mike Côté db374fc950
Ability to get scoped call cluster from alerting and action executors (#64432)
* Initial work

* Rename to getScopedCallCluster

* Fix typecheck

* Fix more type check issues

* Add tests

* Add docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 13:46:04 -04:00
Kerry Gallagher 72fba8bf64
[Logs UI] Alerting (#62806)
First iteration of logs alerting
2020-04-27 16:23:14 +01:00
Alejandro Fernández 085c2452d5
[Logs UI] Complete extendDatemath test suite (#64069)
* Add tests for datemath: `after` direction with a negative operator

* Add tests for datemath: `after` direction with a positive operator

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-24 22:30:10 +02:00
Alejandro Fernández 53b33bb3cb
[Logs UI] View log in context modal (#62198) 2020-04-24 22:29:04 +02:00
Chris Cowan f37185fd8f
[Metrics UI] Design Refresh: Inventory View, Episode 1 (#64026)
* [Metrics UI] Design Refresh: Inventory View, Episode 1

* Removing unused i18n labels

* Removing obsolete code removed in previous PR

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-23 18:00:19 -07:00
Zacqary Adam Xeper 12aae67467
[Metrics Alerts] Add outside range comparator (#63993) 2020-04-22 13:09:09 -05:00
Kerry Gallagher 9a47926b90
[Logs / Metrics UI] Switch to scopedHistory and enhance useLinkProps hook (#61667) 2020-04-22 14:25:39 +01:00
Chris Cowan e32fd2617a
[Metrics UI] Reorganize file layout for Metrics UI (#60049)
* [Metrics UI] Reorganize pages specific files under pages

- Restructuring pages folder
- Renaming metrics_ui to metrics
- Fixing paths in jest mocks
- Fixing AlertsFlyout path
- Fixing bad file paths from the merge

* Fixing typo compontents to components

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 13:44:19 -07:00
Chris Cowan 96b3fd1fe3
[Metrics UI] Remove remaining field filtering (#63398)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 11:04:57 -07:00
Chris Cowan bb49c96167
[Metrics UI] Allow users to create alerts from the central Alerts UI (#63803) 2020-04-17 13:45:26 -07:00
Zacqary Adam Xeper 980e58e5fa
[Metrics Alerts] Fix saving doc count alerts(#63750) 2020-04-17 12:13:29 -05:00
Alexey Antonov 871f7209f9
[Timeseries] remove unused configuration properties (#62543)
* [Timeseries] remove unused configuration properties

* Fix PR comments

* update id of vis_type_timeseries plugin

* metrics -> vis_type_timeseries

* fix wrong plugin id

* update requiredPliugins for infra/kibana.json

* change id

* update plugin id in infra folder

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 19:28:04 +03:00
Gidi Meir Morris bb9f8845ae
[alerting] Adds an alertServices mock and uses it in siem, monitoring and uptime (#63489)
Work on #61313 has revealed that we don't have amock for AlertServices, which creates coupling between us and any solution depending on us, which makes it harder to make changes in our own code.

This PR adds mocks and uses them in SIEM, Monitoring and Uptime, so that we can make future changes without having to change outside solutions.
2020-04-16 08:45:38 +01:00
Phillip Burch c885ea5379
Because onThreshold is changed even when it hasn't changed add a check (#63555)
* Because onThreshold is changed even when it hasn't changed add a check

* Fix join
2020-04-15 06:43:03 -05:00
Phillip Burch bf63b56f83
Disable adding conditions when in alert management context. (#63514)
* Disable adding conditions when in alert manament context.

* Fix typo

* Change id for i18n string
2020-04-14 18:32:05 -05:00
Phillip Burch 7cb3ee44ea
Add help text to form fields (#63165)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 12:13:44 -05:00
Chris Cowan c2f2a79acb
[Metrics UI] Refactor With* containers to hooks (#59503)
* [Metrics UI] Refactor containers to hooks

* clean up depends; move useInterval out of useWaffleTime;

* converting WithWaffleFilters to useWaffleFilters

* Removing WithWaffleOptions

* Refactor WithWaffleViewState to useWaffleViewState

* Removing obsolete files

* Fixing race condition with complext state

* Adding undefined to RisonValue; unwinding changes trying to work around bad type

* Switching to context

* Change assertion to ignore the length of the current URL

* Fixing test frameork to accept urls longer then 230 characters

* Fixes #59395; Refactor WithMetricsTime to hook; Fixes brushing on metric detail page; fixes refresh button on metric detail page

* Fixing tests with adding timeRange

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 09:01:41 -07:00
Zacqary Adam Xeper cbe479b8bd
[Metrics UI] Invalidate non-count alerts which have no metrics (#62837) 2020-04-08 12:39:59 -05:00
Phillip Burch 18c3f75bfb
The theme doesn't exist on props when used from the alerting management screen (#62811) 2020-04-08 11:38:23 -05:00
Zacqary Adam Xeper 879dadff31
[Metrics Alerts] Dynamically fetch index pattern (#62708)
* Fetch index pattern dynamically from alert executor

* Fix fetching of non-default pattern
2020-04-07 12:55:42 -05:00