Commit graph

135 commits

Author SHA1 Message Date
mgiota ba85f45014
[Logs & Metrics] refactor breadcrumbs (#103249)
* [Logs & Metrics] refactor breadcrumbs

* [Logs & Metrics] remove Header component, move translations and create readonly badge hook

* add breadcrumb to metric detail page

* fix check_file_casing ci issues

* create separate breadcrumb hook for logs and metrics

* fix metrics translation title

* fix wrong imports and unused variables

* fix translation imports

* fix unused import

* refactor use_breadcrumbs

* remove Header component

* fix linter exhaustive-deps error by wrapping into useMemo

* refactor use_readonly_badge

* remove commented out code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-01 12:13:33 +02:00
Kerry Gallagher 9ba1ead7c8
[Logs UI] Log threshold rule performance improvements (#102650)
* Add optimisations for executor / chart previews

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-24 20:12:52 +01:00
Liza Katz 8abb656d7f
[Kuery] Move json utils (#102058)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 18:15:47 +03:00
Felix Stürmer 664cc5f163
[Logs UI] Fix applying a filter from the log entry detail flyout (#101011)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 18:29:50 +02:00
Mikhail Shustov d920682e4e
Update @elastic/elasticsearch to 8.0.0-canary13 (#98266)
* bump @elastic/elasticsearch to canary.7

* address errors in core

* address errors in data plugin

* address errors in Alerting team plugins

* remove outdated messages in Lens

* remove unnecessary comments in ML

* address errors in Observability plugin

* address errors in reporting plugin

* address errors in Rule registry plugin

* fix errors in Security plugins

* fix errors in ES-UI plugin

* remove unnecessary union.

* update core tests

* fix kbn-es-archiver

* update to canary 8

* bump to v9

* use new typings

* fix new errors in core

* fix errors in core typeings

* fix type errors in data plugin

* fix type errors in telemetray plugin

* fix data plugin tests

* fix search examples type error

* fix errors in discover plugin

* fix errors in index_pattern_management

* fix type errors in vis_type_*

* fix errors in typings/elasticsearch

* fix type errors in actions plugin

* fix type errors in alerting and apm plugins

* fix type errors in canvas and cases

* fix errors in event_log

* fix type errors in ILM and ingest_pipelines

* fix errors in lens plugin

* fix errors in lists plugin

* fix errors in logstash

* fix errors in metrics_entities

* fix errors in o11y

* fix errors in watcher

* fix errors in uptime

* fix errors in upgrade_assistant

* fix errors in task_manager

* fix errors in stack_alerts

* fix errors in security_solution

* fix errors in rule_registry

* fix errors in snapshot_restore

* fix remaining errors

* fix search intergration tests

* adjust assetion

* bump version to canary.10

* adapt code to new naming schema

* use mapping types provided by the client library

* Revert "adjust assetion"

This reverts commit 19b8fe0464.

* fix so intergration tests

* fix http integration tests

* bump version to canary 11

* fix login test

* fix http integration test

* fix apm test

* update docs

* fixing some ml types

* fix new errors in data plugin

* fix new errors in alerting plugin

* fix new errors in lists plugin

* fix new errors in reporting

* fix or mute errors in rule_registry plugin

* more ML type fixes

* bump to canary 12

* fix errors after merge conflict

* additional ML fixes

* bump to canary 13

* fix errors in apm plugin

* fix errors in fleet plugin

* fix errors in infra plugin

* fix errors in monitoring plugin

* fix errors in osquery plugin

* fix errors in security solution plugins

* fix errors in transform plugin

* Update type imports for ES

* fix errors in x-pack plugins

* fix errors in tests

* update docs

* fix errors in x-pack/test

* update error description

* fix errors after master merge

* update comment in infra plugin

* fix new errors on xpack tests/

Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-08 15:06:06 +02:00
Chris Cowan 83fd34d41c
[Metrics UI] Use the normalized field for CPU usage for Observability Overview (#98995)
* [Metrics UI] Use the noramlized field for CPU usage for Observability Overview

* fixing overview page as well

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 07:40:56 -07:00
Felix Stürmer 0e948cffc9
[Logs UI] Prevent broken KIP references from breaking the Logs UI (#98532)
This fixes problems in handling broken KIP references and reduces the risk of broken references occurring the first place.
2021-04-30 16:18:52 +02:00
Kerry Gallagher d49fbc9d1c
[Logs UI] Support runtime mappings in ML job configurations (#97627)
This PR adds our runtime mappings, as defined on the Kibana Index Pattern, to job configurations (both log rate and log categories). It also flags outdated runtime mappings in the "outdated configuration" callout.

Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2021-04-20 23:51:10 +02:00
Felix Stürmer 9ae605af93
[Logs UI] Display and query runtime fields from KIPs in the log stream and entry flyout (#97467)
This enhances the queries such that they pass runtime fields defined on Kibana index patterns as `runtime_mappings` in the log entry search strategies.
2021-04-20 11:22:14 +02:00
Felix Stürmer 89dd4b6eec
[Logs UI] Support Kibana index patterns in the Logs UI settings UI (#94849)
This enhances the Logs UI settings screen to support both the legacy configuration style with index name patterns as well as the new style based on Kibana index patterns.
2021-04-20 00:04:25 +02:00
Phillip Burch e11ac98b3a
[Metrics UI] Add anomalies tab to enhanced node details (#96967)
* Adapt the anomalies table to work in overlay

* Wire up the onClose function

* Make "show in inventory" filter waffle map

* Remove unused variable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 11:37:47 -05:00
Kerry Gallagher 9b456ac0fe
[Logs UI] Provide support for Kibana Index Patterns in the logs source configuration (#96454)
* Provide support for Kibana Index Patterns in the logs source configuration

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-04-15 16:15:11 +01:00
Felix Stürmer 1a7095365a
[Logs UI] Allow for missing properties on ES shard failure responses (#96768)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 13:28:26 +02:00
Chris Cowan 91b727f412
[Metrics UI] Observability Overview Host Summary (#90879)
* [Metrics UI] Observability Overview Host Summary

* Adding UI elements

* Adding logos

* Changing the size of the request

* Change to new ECS fields for network traffic

* Adding logos to HostLink component

* Round seconds

* fixing data handler test

* Fixing test for metrics_overview_fetchers

* Adding types for SVG to observability

* Adding i18n support to table labels

* removing unused translations

* move back to host.network.(in,out).bytes

* Adding changes to source from #95334

* Fixing source type

* Removing unintentional change.

* Maybe, fixing types

* removing svg typings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 08:38:12 -07:00
Ester Martí Vilaseca 1d6f61f186
Change top_hits aggregation to top_metrics for snapshot api (#95644)
* Change top_hits aggregations to top_metrics for snapshot api

* Fix typing

* Remove top_hits types

* Add test for top metrics

* Fix functional test

* Add size 1 to top metrics aggregation

* change type for metadata rows

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 14:32:16 +02:00
Kerry Gallagher 6b6404954e
[Logs / Metrics UI] Separate logs / metrics source configuration awareness (#95334)
* Remove metrics awareness of logs fields
2021-03-25 18:59:18 +00:00
Phillip Burch dc1f7d51d4
[Metrics UI] Add anomalies table to flyout (#90305)
* Add anomalies table to flyout

* Fix type

* Update i18n

* use anomalyThreshold from configuration

* use EuiBasicTable and format date

* add actions menu

* update text

* change host/k8s toggle to EuiComboBox

* add open in inventory to actions

* add search functionality back

* debounce api call

* loading messaging

* change types, cleanup

* query with partition field instead of influencers to prevent long query ES server errors

* show text when no jobs enabled

* adjust date

* close flyout after clicking show in inventory

* fix callout

Co-authored-by: neptunian <sandra.gonzales@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-23 14:14:05 -04:00
Kerry Gallagher ef042b9e86
[Logs UI] Fixes missing fields in the log entries search strategy (#94443) 2021-03-12 12:57:55 +01:00
Chris Cowan 5517e6cf90
[Metrics UI] Use memory limit for K8S when available (#93686)
* [Metrics UI] Use memory limit for K8S when available

* removing duplicate key

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-11 13:07:04 -07:00
Alejandro Fernández Gómez 4d34a13bab
[Logs UI] Replace dependencies in the infra bundle (#91503) 2021-02-19 09:06:33 -05: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 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 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 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
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
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
Chris Cowan cf846bdddf
[Metrics UI][Logs UI] Completely remove GraphQL and Apollo (#89036) 2021-02-02 16:56:40 -07: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
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
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
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
Nathan L Smith 31a481a9dd
Remove dependency between alerts and infra (#88342)
The alerts plugin was importing `JsonObject` from the infra plugin. The infra plugin imported `JsonObject`, `JsonValue`, and `JsonArray` from kibanaUtils and then re-exported them.

Remove the re-export from the infra plugin and instead always import these types from kibanaUtils.
2021-01-15 08:44:28 -06:00
Felix Stürmer 24db3a0070
[Logs UI] Fix initial selection of log threshold alert condition field if missing from mapping (#86488)
This avoid selecting the `log.level` field as the default in log threshold alerts if it is not present in the mapping of at least one source index.
2020-12-22 19:36:02 +01:00
Felix Stürmer efe62acd80
[Logs UI] Add helper hooks with search strategy request cancellation (#83906) 2020-12-11 11:25:45 +01:00
Chris Cowan 20bad37aa9
[Observability][Metrics UI] Refactor Observability Overview for Performance (#84955)
* [Observability][Metrics UI] Refactor Observability Overview for Performance

* Fixing case to match EUI guidelines

* Changing alert consumer for Metrics UI to infrastructure

* Removing unused translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-10 12:35:27 -07:00
Zacqary Adam Xeper de289de6c1
[Metrics UI] Refactor Process List API to fetch only top processes (#84716)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-07 14:46:26 -06:00
Phillip Burch 61fdec2486
[Metrics UI] Add metadata tab to node details flyout (#84454)
* Add properties tab to flyout

* Better id for i18n title

* Update i18n ids

* Fix test and styling

* Style changes, add support for collapsing array fields

* Add loading indicators

* Fix type check

* Fix another test

* Fix tests for pods

* Add link to node details page

* Only show the overlay when viewing hosts

* Take into account cores when showing cpu

* Make it easier to read

* Remove unnecessary cast

* Fix PR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 12:14:02 -06:00
Felix Stürmer 3cb26ebe8d
[Logs UI] Fetch single log entries via a search strategy (#81710)
This replaces the log item API with a single-log-entry search strategy. This is used to fetch the data for display in the details flyout. There should be no significant visual difference to the user.
2020-12-03 13:05:15 +01:00
Alejandro Fernández Gómez 378d89b5cd
[Logs UI] Allow custom columns in the <LogStream /> component (#83802) 2020-11-23 17:30:02 +01:00
Phillip Burch f793d9b719
[Metrics UI] Add metrics to node details (#83357)
* Add charts to the metrics tab

* Add timepicker, i18n, polish

* Fix copyrite

* Update x-pack/plugins/infra/public/pages/metrics/inventory_view/components/node_details/tabs/metrics/chart_header.tsx

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Style changes

* More pr feedback

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2020-11-19 12:50:06 -06:00
Chris Cowan a04cb37f2b
[Metrics UI] Optimizations for Snapshot and Inventory Metadata (#83596)
* [Metrics UI] Add time range to inventory metadata request

* Adding optimizations for snapshot request

* Adding sorting to dataset request

* Only query inventory metadata for AWS

* moving check inside getCloudMetadata

* removing unused deps
2020-11-18 18:14:22 -07:00
Zacqary Adam Xeper 21c0258e6b
[Metrics UI] Add Process tab to Enhanced Node Details (#83477) 2020-11-18 10:41:28 -06:00
Alejandro Fernández Gómez 0e7bcf6164
[Logs UI] Add pagination to the log stream shared component (#81193)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-12 15:11:43 +01:00
Chris Cowan eedf0673d3
[Metrics UI] Add endpoint for Metrics API (#81693)
* [Metrics UI] Add endpoint for Metrics API

* Adding the ability to caculate the interval based on a module

* fixing types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-29 13:55:50 -07:00