Commit graph

643 commits

Author SHA1 Message Date
Kibana Machine
1765d1dea3
Hide Enterprise search panel when no nodes are present (#127100) (#127114)
(cherry picked from commit fc3aedcf78)

Co-authored-by: Mat Schaffer <mat@elastic.co>
2022-03-08 02:31:56 -07:00
Kevin Lacabane
2dfb0c40bd
[8.0] [Stack Monitoring] update rules queries to support metricbeat 8.0 [fixed PR] (#125748) (#125877)
* [Stack Monitoring] update rules queries to support metricbeat 8.0 [fixed PR] (#125748)

* update queries to use metricset.name and fix paths

* fix ccr query

* fix cluster health query paths

* update elasticsearch version mismatch

* update fetchLicense paths

* use ecs properties in fetch_index_shard_size

* Clarified comment about createDatasetFilter

* Re-editing a clarifying comment

* Small comment edit

* Revert "use ecs properties in fetch_index_shard_size"

This reverts commit cdf8b2493e.

* simplify fetch_index_shard_size document handling

Co-authored-by: neptunian <sandra.gonzales@elastic.co>
Co-authored-by: klacabane <kevin.lacabane@elastic.co>
(cherry picked from commit 7126bc9cc1)

# Conflicts:
#	x-pack/plugins/monitoring/server/lib/alerts/create_dataset_query_filter.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_ccr_read_exceptions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_ccr_read_exceptions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cluster_health.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cluster_health.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_clusters.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_clusters.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cpu_usage_node_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_cpu_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_disk_usage_node_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_disk_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_elasticsearch_versions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_elasticsearch_versions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_index_shard_size.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_index_shard_size.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_kibana_versions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_kibana_versions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_licenses.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_licenses.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_logstash_versions.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_logstash_versions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_memory_usage_node_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_memory_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_missing_monitoring_data.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_missing_monitoring_data.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_nodes_from_cluster_stats.test.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_nodes_from_cluster_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_thread_pool_rejections_stats.ts

* import createDatasetFilter

* target correct filter property

Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
2022-02-16 16:34:02 -07:00
Milton Hultgren
b0e52e552a
[Stack Monitoring] Page layout fixes (#124182) (#125341)
* adding EUI page layout components

* adding context menu button to toolbar and cleaning up tabs

* [Monitoring] Integrate setup mode toggle button with React tree

* Update unit tests

* Only show setup mode button on supported pages

* Move setup mode supported responsibility to renderer

* Fix failing unit test

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit aad83ed0b6)

# Conflicts:
#	x-pack/plugins/monitoring/public/application/pages/page_template.tsx

Co-authored-by: Kate Farrar <kate.farrar@gmail.com>
2022-02-11 03:44:35 -07:00
Kibana Machine
d7b67f4c41
[Stack Monitoring] Replace deprecated esKuery and IFieldType usages (#124288) (#124351)
(cherry picked from commit 081973f5e0)

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2022-02-02 09:11:51 -07:00
Mat Schaffer
2f9491207f
[8.0] Ensure logstash getNodes always contains a uuid (#124201) (#124319)
* Ensure logstash getNodes always contains a uuid (#124201)

This is less of an issue on main since we've stopped querying `metricbeat-*` but might become important when we start doing agent testing (`metrics-*`).

On 8.0 it's easy to have error documents land in `metricbeat-*` for standalone logstash and break the UI.

(cherry picked from commit fb1ca61db5)

# Conflicts:
#	x-pack/plugins/monitoring/server/lib/logstash/get_nodes.ts

* No global stubs required in 8.0 branch
2022-02-02 02:09:55 -07:00
Kevin Lacabane
53b6f7199e
[Stack monitoring] remove support for monitoring.cluster_alerts.allowedSpaces (#123229) (#123736)
* remove allowed space setting

* set allowedSpaces as unused setting

* mock unused function in deprecation tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 24f0425284)

# Conflicts:
#	api_docs/monitoring.json
2022-01-25 10:35:16 -07:00
Kibana Machine
aa23b8d094
[Stack monitoring] logstash - read from correct aggregation (#122443) (#123149)
* add test-subj to pipeline viewer section

* pipeline viewer service

* clickPipeline

* pipeline viewer_mb test

* lint

* lint

* update component snapshot

* fix get_pipeline bucket selection

* align metricbeat pipeline data with internal monitoring

* collect filters

* fix pipeline viewer test

* clean logstash_pipelines_mb archive

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6c6a2edee3)

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2022-01-17 07:13:21 -07:00
Kerry Gallagher
75eea5dc34
[Stack Monitoring] Fix date picker range options (#121295) (#123122)
* Pass commonly used ranges to EuiSuperDatePicker

* Tidy up start contract types

(cherry picked from commit dcd6da7de6)
2022-01-17 03:54:15 -07:00
Kevin Lacabane
e65414950d
[8.0] Stack monitoring - logstash 8.0 metricbeat standalone compatibility (#122177) (#122345)
* Stack monitoring - logstash 8.0 metricbeat standalone compatibility  (#122177)

* use node_stats metricset filter

* fix pipeline dropdown redirection

* add get_pipeline metricbeat aggregation

* add get_pipeline_vertex metricbeat aggregation

* update logstash metricbeat archived data

* merge_pipeline_versions

* type parameter

* use datastream for mb functional tests

* fix metricbeat apis tests

* lint

* lint

* lint

* fix multicluster api test

* lint

* fix singlecluster_green_gold_mb tests

* lint

* add test case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/monitoring/server/lib/logstash/get_logstash_for_clusters.ts

* remove bluebird import
2022-01-05 10:07:22 -07:00
Kibana Machine
ebc78ca55f
Stack monitoring - update standalone cluster query for metricbeat 8.0 (#122007) (#122219)
* use event.dataset property as filter for standalone query

* add standalone cluster listing functional test

* add metricbeat standalone cluster listing functional test

* lint

* lint

* update logstash datasets for standalone query

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2022-01-03 10:24:47 -07:00
Kibana Machine
336963cebf
fix kibana metricsets property paths (#122034) (#122188)
* fix kibana metricsets property paths

* return inner kibana object

* fix functional test

* rename

* adapt tests to datastream

* rebuild archived data

* extract buildKibanaInfo for reuse

* add license

* lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2022-01-03 09:49:14 -07:00
Kibana Machine
cf37e5a4ae
[Stack monitoring] adapt ES queries to updated document structure (#121641) (#121949)
* adapt ES queries to updated document structure

* lint

* Revert "lint"

This reverts commit 2ad61e406c.

* Revert "adapt ES queries to updated document structure"

This reverts commit 25d4357dd2.

* fix cluster state property accesses

* only query index_recovery with ecs compliant indices

* lint

* setup/teardown to support datastreams

* lint

* update _mb archived data to target .monitoring index

* load archive with useCreate for datastream compatibility

* Revert "update _mb archived data to target .monitoring index"

This reverts commit 7bad361fd1.

* ignore non-elasticsearch archived documents

* Revert "ignore non-elasticsearch archived documents"

This reverts commit 26daeb7066.

* use correct index for archived documents

* add datastream lifecycle helper for api-integration tests

* use datastream lifecycle methods

* transform ccr_mb archive

* clean up datastreams

* lint

* load _mb data

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2021-12-23 05:45:16 -07:00
Kibana Machine
b606417ae5
[8.0] [Usage collection] Update bulkFetch logic (#121437) (#121665)
* [Usage collection] Update bulkFetch logic (#121437)

* Update collector_set.ts

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-12-20 14:25:30 -07:00
Ahmad Bamieh
a18ed0f13c
[Usage Collection] add caching layer for stats (#119312) (#121438) 2021-12-16 12:31:41 -07:00
Kibana Machine
78e74925a6
correct linear regression formula (#120222) (#120654)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: dcolazin <51136913+dcolazin@users.noreply.github.com>
2021-12-09 14:56:04 -07:00
Kibana Machine
d635780a1f
[Stack Monitoring] separate out mb and legacy index patterns from requests (#120841) (#120856)
* seprate out mb and legacy index patterns from requests

* use config for metricbeat index

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
2021-12-08 18:34:17 -07:00
Kibana Machine
a56ee61103
Enterprise Search Stack Monitoring (#114303) (#120630)
* Added enterprise search panel, corrected queries

* Update the index pattern for Enterprise Search

* Typescript error ignore

* Our timestamp fields are called @timestamp (per ECS)

* Adjust Enterprise Search index patterns with the rest of monitoring plugin patterns (including CCS, etc)

* Initial implementation of the Enterprise Search overview panel (health only)

* Add a basic stub for enterprise search response fields

* Cleanup aggs configs

* Bring back a file deleted by mistake

* Started working on the overview page

* Correctly use heap_max as the total heap

* Ent search breadcrumbs

* Simple overview

* Allow the cluster_uuid filter to be skipped while fetching metrics

* Cleanup

* Switch to module-level uuid field and use both types of events

* Add stats-based product usage metrics + apply filter paths to reduce traffic

* Change the name of the ent search overview class

* Move the standalone cluster hack in the the internal function

* Change the overview page to show product usage metrics + introduce enterprise search stats in addition to metrics (they are fetched differently and allow us to reuse the stats code we have for the main page panel)

* Cluster UUID is at the module level now

* Simplify ent search pages structure, only have one overview page

* Fix ent search icon

* Add total instances

* Product usage metric graphs

* Simplify metrics loading in the overview page since we load all metrics anyways

* Add more enterprise search overview metrics

* Avoid duplicate labels

* linting

* Revert "Simplify metrics loading in the overview page since we load all metrics anyways"

This reverts commit 4bd67ab88a.

* Switch to multiple timeseries per graph

* Reorder graphs and metrics for better experience

* Typescript fixes

* i18n fixes

* Added a couple more JVM metrics

* Completely covered JVM metrics

* Convert Enterprise Search component to Typescript

* Switch config setting back

* Remove the nodes link since it raises more questions than it solves

* Update jest snapshots with the new metrics

* Remove console statement

* Properly handle cases when aggregations return no data for Enterprise Search

* Add a functional test for the Enterprise search cluster list panel

* Add a functional test for Enterprise Search overview page

* Update multicluster API response fixture with the new enterprise search response key

* Default uptime value is 0

* update overview fixture

* More fixture updates

* Remove fixmes

* Fix imports

* Properly export type

* Maybe fix the type checking error

* PR Feedback

* TS fixes

Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>

Co-authored-by: Oleksiy Kovyrin <oleksiy@kovyrin.net>
Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>
2021-12-07 09:33:11 -07:00
Kibana Machine
c5146db546
[Stack monitoring] Add basic tests for alerts modal (#116769) (#119754)
* Add basic tests for alerts modal

* fix types

* fix setup mode button test subj

* fix unit tests

* Move alerts modal tests to functional since ssl is not required anymore

* Remove not needed config change

* fix test for overview alerts badge

* Extract alerts deletion to a new service

* exit setup mode in alerts test

* add missing file

* update test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-11-25 12:27:54 -07:00
Kibana Machine
bb51dc92a8
Switch monitoring alerts CCS to use remote glob (#118647) (#119695)
* Switch monitoring alerts CCS to use remote glob

Rather than expanding all available remotes which can exceed netty buffers when many remotes are present.

* Fix additional availableCcs as string[] references

* Fix code warnings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Mat Schaffer <mat@elastic.co>
2021-11-24 21:45:22 -07:00
Tiago Costa
beb041b24f
[8.0] chore(NA): splits types from code on @kbn/i18n (#119256) (#119649)
* chore(NA): splits types from code on @kbn/i18n (#119256)

* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/BUILD.bazel
#	packages/kbn-monaco/BUILD.bazel
#	src/core/public/core_app/status/components/server_status.tsx
#	src/core/public/core_app/status/components/status_table.tsx
#	src/core/public/core_app/status/components/version_header.tsx
#	src/core/public/core_app/status/status_app.tsx
#	src/plugins/console/public/application/components/storage_quota_error.tsx
#	src/plugins/dashboard/public/application/listing/dashboard_listing.tsx
#	src/plugins/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx
#	src/plugins/dev_tools/public/application.tsx
#	src/plugins/discover/public/application/apps/context/context_app_route.tsx
#	src/plugins/discover/public/application/apps/doc/single_doc_route.tsx
#	src/plugins/discover/public/application/apps/main/components/doc_table/components/table_row_details.tsx
#	src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx
#	src/plugins/discover/public/application/components/table/table_columns.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_filter_remove.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_toggle_column.tsx
#	src/plugins/index_pattern_editor/public/open_editor.tsx
#	src/plugins/interactive_setup/public/plugin.tsx
#	src/plugins/kibana_overview/public/application.tsx
#	src/plugins/kibana_react/public/util/to_mount_point.tsx
#	src/plugins/presentation_util/public/components/field_picker/field_search.tsx
#	src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx
#	src/plugins/vis_types/xy/public/vis_renderer.tsx
#	src/plugins/visualizations/public/wizard/show_new_vis.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/error_display.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/instructions.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/main.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_csv_uploader.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_preview.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/empty_list.tsx
#	x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx
#	x-pack/plugins/lens/public/indexpattern_datasource/utils.tsx
#	x-pack/plugins/lens/public/metric_visualization/visualization.tsx
#	x-pack/plugins/lens/public/pie_visualization/render_function.tsx
#	x-pack/plugins/maps/public/classes/sources/ems_tms_source/update_source_editor.js
#	x-pack/plugins/maps/public/classes/sources/es_search_source/util/scaling_documenation_popover.tsx
#	x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.tsx
#	x-pack/plugins/security/public/authentication/logged_out/logged_out_page.tsx
#	x-pack/plugins/security/public/authentication/login/login_page.tsx
#	x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.tsx
#	x-pack/plugins/security/public/management/users/users_management_app.tsx
#	x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/form/index.tsx
#	x-pack/plugins/spaces/public/space_selector/space_selector.tsx
#	yarn.lock

* chore(NA): missing @kbn/i18n/react imports
2021-11-24 12:19:43 -07:00
Kibana Machine
7a9749722a
Add stats to the overview page (#119341) (#119615)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
2021-11-24 08:42:02 -07:00
Kibana Machine
4dc2a7da22
[Stack Monitoring] remove usage of fields being removed in ES segments, update tests (#118106) (#118700)
* remove usage of fields being removed in es, update tests

* add Lucene to title of fixed_bit_set_memory_in_bytes instead of generic IndexMemoryMetric class

* update fixtures for integration tests

* remove index segment count

* update translations

* remove usage of fields being removed in es, update tests

* add Lucene to title of fixed_bit_set_memory_in_bytes instead of generic IndexMemoryMetric class

* update fixtures for integration tests

* remove index segment count

* update translations

* Revert "remove index segment count"

This reverts commit d56ce6e746.

* Revert "remove index segment count"

This reverts commit d56ce6e746.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
2021-11-16 08:43:16 -07:00
Or Ouziel
835f2d8d45
[8.0] replace any with unknown in http client and types (#114265) (#118348)
* replace any with unknown in http client and types (#114265)

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/suggestions_logic.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curation_suggestion/curation_suggestion_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curations_settings/curations_settings_logic.ts

* commit using @elastic.co

* remove unused file
2021-11-15 09:12:42 -07:00
Kibana Machine
74f1a86880
[Stack Monitoring] Update security messaging around alerting (#117505) (#118305)
* Add a getSecurityHealth helper to alerting and update messaging around alerting in Stack Monitoring

Co-authored-by: ymao1 <ying.mao@elastic.co>

Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-11-11 06:43:26 -05:00
Kibana Machine
a234068b22
[Stack Monitoring] Lazily import alerting expressions without blocking the plugin initialization (#117187) (#117858)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-11-08 16:05:23 +00:00
Kibana Machine
ba4e5bbc5b
Add levels for registered deprecations (#117691) (#117750)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-11-06 00:14:02 +00:00
Kibana Machine
2562763b08
[Stack Monitoring] Logstash Functional Tests (#116481) (#116815)
* logstash overview functional test

* logstash nodes listing functional tests

* node detail tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
2021-11-04 22:22:03 +00:00
Jonathan Budzenski
57a764f057
Revert "[8.0] replace any with unknown in http client and types (#114265) (#117524)" (#117592)
This reverts commit 58f1af552e.
2021-11-04 15:18:29 -05:00
Or Ouziel
58f1af552e
[8.0] replace any with unknown in http client and types (#114265) (#117524)
* replace any with unknown in http client and types (#114265)

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/suggestions_logic.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curation_suggestion/curation_suggestion_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curations_settings/curations_settings_logic.ts
#	x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/api.ts

* commit using @elastic.co
2021-11-04 18:15:11 +00:00
Spencer
7d3d79e6a1
[8.0] [eslint] enable type-specific lint rules (#114184) (#117444)
* [eslint] enable type-specific lint rules (#114184)

* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/share/common/index.ts

* autofix more types

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-04 03:02:56 +00:00
Mikhail Shustov
3c8fa527a7
[ES] Upgrade client to v8.0 (#113950)
* bump to a pre-8.0 version

* export KibanaClient from /lib sub-folder

* workaround the problem of the absence of estypes

* update es client usage in pacakges

* export estypes from another path

* import errors from root

* import errors from root 2

* update transport import

* update import path for /api/types

* update import path for /api/types

* import errors from top export

* use TransportResult instead if ApiResponse

* fix errors in client_config

* fix src/core/server/saved_objects/migrationsv2/actions/integration_tests/actions.test.ts

* use KibanaClient in mock. we dont export the original Client

* fix client mocks

* fix errors on SO

* fix remaining core errors

* update estype import path

* fix errors in data plugin

* fix data_views

* fix es_ui_shared

* fix errors in interactive_setup

* fix errors in ./test folder

* add @elastic/transport to the runtime deps

* fix errors in packages

* fix erros in src/core

* fix errors in test/

* fix an error in actions plugin

* woraround and fix errors in APM plugin

* fix errors in canvas

* fix errors in event_log

* fix errors in fleet

* fix errors in ILM

* fix errors in infra

* fix errors in ingest_pipeline

* fix errors in lens

* fix errors in license_management

* fix errors in licensing

* fix errors in logstash

* fix errors in ml

* fix errors in monitoring

* fix errors in observability

* fix errors in rule_registry

* fix errors in reporting

* fix errors in rule_registry

* fix errors in security

* fix errors in security_solution

* fix errors in snapshot_restore

* fix errors in transform

* fix errors in UA

* fix errors in uptime

* fix errors in x-pack/test

* fix eslint errors

* fix new errors

* use default HTTP Connection. Undici does not support agent config options keepAlive and maxSockets

* create does not accept require_alias option

* update deps

* use transport types exported from ES client package

* fix ErrorCause | string errors

* do not use enum

* fix errors in data plugin

* update x-pack code

* fix transport

* fix apm search request

* do not crash on reporting

* fix kbn-test build

* mute reporting error to start

* fix ftr build

* another attempt

* update import path

* address or mute new errors

* REMOVE me. pin transport version temporarily.

* remove deep imports from transport package

* fix jest crash

* fix product check tests

* remove unnecessary ts-expect-error

* fix a few failed unit tests

* bump to canary 24

* remove unnecessary ts-expect-error

* remove dependency on transport

* fix types in tests

* mute errors in xpack tests

* product check doesn;t  spam in logs anymore

* filterPath --> filter_path

* ignoreUnavailable --> ignore_unavailable

* ignoreUnavailable --> ignore_unavailable

* trackScores --> track_scores

* trackTotalHits --> track_total_hits

* fix es-arcives

* fix data plugin crashes

* fix watcher test utils

* rollback unnecessary changes

* fix another problem in es-archiver

* fix scroll. for whatever reason scroll fails when request scroll_id in body

* add meta: true in kbn-securitysolution-es-utils

* bump client to canary 25

* fix errors in accordance with the es client spec

* update securityscolution-es-utils

* unify scroll api in reporting and fix tests

* fix unit tests in watcher

* refactor APM to abort request with AbortController API

* fix missing es client calls in tests

* fix missing meta in detection engine FTR tests

* fix another bunch of errors in js tests

* fix wrong coercion

* remove test-grep pattern

* fix apm unit test

* rename terminateAfter to terminate_after in infra plugin

* rename terminateAfter to terminate_after in uptime plugin

* rename terminateAfter to terminate_after in apm plugin

* fix security roles FTR tests

* fix reference

* fix post_privilidges test

* fix post_privilidges

* bump client to 26

* add meta for index_management test helpers

* remove ts-expect-error caused by bad type in reason

* bump client to 27

* REMOVE me. workaround until fixed in the es client

* fix incorrect type casting

* swtich from camelCase params

* use `HttpConnection` for FTR-related clients

* bump client to 29

* Revert "REMOVE me. workaround until fixed in the es client"

This reverts commit c038850c09.

* fix new util

* revert repository changes

* do not crash if cannot store event_loop data

* fix new estypes imports

* fix more types

* fix security test types and add ts-ignore for custom ES client

* fix more estypes imports

* yet more ts violations

* line by line fixing is hard

* adapt `evaluateAlert` from infra as it's also used from FTR tests

* use convertToKibanaClient in FTR test instead of meta:true in plugin code

* migrate from deprecated API in fleet

* fix intergration tests

* fix fleet tests

* fix another fleet test

* fix more tests

* let's call it a day

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional (#116029)

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional

* Updates proxy response integration test

* disable APM until compatible with client v8

* skip async_search FTR test

* use kbnClient in integration tests

* bump version to 29

* bump to 30

* have configureClient return a KibanaClient instead of Client, remove resolved violations.

* bump to 31

* bump to 31

* Revert "bump to 31"

This reverts commit 5ac713e640.

* trigger stop to unusubscribe

* update generated docs

* remove obsolete test

* put "as" back

* cleanup

* skip test

* remove new type errors in apm package

* remove ErrorCause casting

* update a comment

* bump version to 32

* remove unnecessary ts-expect-error in apm code

* update comments

* update to client v33

* remove outdated type definition

* bump to 34 without params mutation

* unskip the test that should not fail anymore

* remove unnecessary ts-expect-error comments

* update to v35. body can be string

* move `sort` to body and use body friendly syntax

* fix a failing test. maps register the same SO that has been already registered by home

Co-authored-by: pgayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-10-26 14:08:22 +02:00
Ester Martí Vilaseca
e956964c06
Add page title to index advanced page (#116134) 2021-10-26 08:26:48 +02:00
Pierre Gayvallet
106183551a
[8.0] remove kibana.index config property (#112773)
* remove kibana config

* remove kibanaConfig usages

* prettier fix

* fix some globalConfig.kibana.index access

* fix xpack_legacy globalConfig usage

* fix home globalConfig usage

* fix canvas globalConfig usage

* fix action globalConfig usage

* fix (all?) remaining usages

* fix more plugins

* fix more plugins bis

* yet more usages

* fix ml usages

* fix security_solution

* fix lens

* fix monitoring

* remove from settings docs

* move doc update

* fix unit tests

* update generated doc

* improve test

* adapt new usage in security_solution

* fix security_solution config

* fix createConfig, again

* fix mock config
2021-10-25 14:25:24 -07:00
Greg Thompson
59815a0681
Upgrade EUI to v40.0.0 (#115639)
* eui to v40.0.0

* tokenKeyword -> tokenTag

* mobileOptions type

* snapshot updates

* Revert "tokenKeyword -> tokenTag"

This reverts commit 0e5eae64e7.

* token snapshot
2021-10-25 11:54:37 -05:00
Phillip Burch
d66abdf25e
Fix bug with popup not closing (#115954) 2021-10-25 11:39:43 +02:00
Sandra G
003c0f36ec
don't request when request is pending (#115999)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-22 14:17:12 -04:00
Phillip Burch
00f05ce207
[Stack Monitoring] Fix missing breadcrumbs to logstash (#115780) 2021-10-21 21:23:35 +01:00
Ester Martí Vilaseca
7b7079bae7
[Stack monitoring] Remove getAngularInjector and duplicated angular components (#115593)
* remove getAngularInjector and old angular components

* Remove suffix from CcrShardReact component

* Remove suffix from ElasticsearchOverviewReact component

* Remove suffix from indexReact component

* Remove suffix from NodeReact component

* Remove suffix from ShardActivityReact

* Remove suffix from ShardAllocationReact component and its childs

* Fix import

* fix translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-20 18:54:41 +02:00
Mikhail Shustov
c6fcde9a8b
[ES client] Rename deprecated params (#115528)
* filterPath --> filter_path

* ignoreUnavailable --> ignore_unavailable

* ignoreUnavailable --> ignore_unavailable

* trackScores --> track_scores

* trackTotalHits --> track_total_hits

* rollback unnecessary changes
2021-10-20 16:46:37 +02:00
Ester Martí Vilaseca
cea4504c87
[Stack monitoring] Setup mode cleaning post migration (#115556)
* Update tests for setup mode

* Remove old setup mode renderer and replace it with the react one

* Remove unnecessary await

* Update tests for setup mode renderer
2021-10-20 11:22:18 +02:00
Ester Martí Vilaseca
ffeadc5241
[Stack monitoring] Remove react migration feature flag (#115575) 2021-10-19 19:03:34 +02:00
Ester Martí Vilaseca
eb5ffff7d0
Clean angular from moved code, global state and legacy shims (#115420) 2021-10-18 17:25:01 -04:00
Ester Martí Vilaseca
3ebfb029a2
[Stack monitoring] Remove angular (#115063)
* Remove angular

* Fix translations

* convert insetupmode to boolean

* remove license service

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-18 18:24:01 +02:00
Kevin Lacabane
b19b63b516
center spinner in NoData component (#115210)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-18 17:36:47 +02:00
Joe Portner
6792bdfc6d
Update security deprecation messages (#115241) 2021-10-18 11:34:13 -04:00
Luke Elmers
94aa791a49
[Breaking] Remove deprecated enabled settings from plugins. (#113495) 2021-10-17 16:54:30 +01:00
Alexey Antonov
50e4ae7179
Move angular related parts from kibana_legacy to monitoring (#114977)
* Move angular related parts from kibana_legacy to monitoring

Closes: #114977

* remove private

* move format angular http error into monitoring

* fix translations
2021-10-15 17:02:23 +03:00
Sandra G
45c3d2b017
[Stack Monitoring] fix error handling during executeCheck (#115091)
* fix error property and add functional test, update jest unit test

* update test
2021-10-15 09:46:41 -04:00
Pierre Gayvallet
81ba068853
Add deprecation.skip_deprecated_settings config setting (#114751)
* Add `deprecation.skip_deprecated_settings` config setting

* fix deprecation from service

* fix existing config deprecations

* fix kbn-config unit tests

* adapt deprecation types

* fix more deprecations

* add filtering and adapt unit tests

* add service unit tests

* update generated doc

* fix telemetry unit tests

* address review comments

* add missing deprecation titles
2021-10-15 12:11:21 +02:00
Ahmad Bamieh
d19510535a
[i18n] remove angular i18n and move the remains to monitoring plugin (#115003) 2021-10-15 12:09:19 +03:00