Commit graph

178 commits

Author SHA1 Message Date
Thomas Watson
0997f4e783
[6.8] Use @commercial/hapi (#97605) 2021-06-29 16:57:46 +02:00
Thomas Watson
84fa5add86
[6.8] Upgrade some hapi related packages to their hapi-namespace counterparts (#98753) 2021-05-06 18:50:12 +02:00
Joe Portner
92972261ae
[6.8] Fixes session timeout (#91070) (#91888)
* Fix calls to `/api/monitoring/v1/clusters` and `/api/monitoring/v1/elasticsearch_settings/check/cluster`

Seen on page: /app/monitoring

* Fix calls to `/api/index_management/indices/reload`

Seen on page: /app/kibana#/management/elasticsearch/index_management/indices

* Fix calls to `/api/cross_cluster_replication/follower_indices`

Seen on page: /app/kibana#/management/elasticsearch/cross_cluster_replication/follower_indices

* Fix calls to `/api/cross_cluster_replication/auto_follow_patterns`

Seen on page: /app/kibana#/management/elasticsearch/cross_cluster_replication/auto_follow_patterns

* Fix calls to `/api/remote_clusters`

Seen on page: /app/kibana#/management/elasticsearch/remote_clusters/list

* Fix calls to `/api/watcher/watches`

Seen on page: /app/kibana#/management/elasticsearch/watcher/watches

* Fix calls to `/api/rollup/jobs`

Seen on page: /app/kibana#/management/elasticsearch/rollup_jobs/job_list
2021-02-19 11:06:09 -05:00
Joe Portner
fbe078c6bd
[6.8] Bump jquery from 3.4.1 to 3.5.0 (#64884) again (#67036) 2020-05-21 15:05:58 -04:00
Joe Portner
12085a84c0
[6.8] Revert jquery update (#66201) 2020-05-12 08:52:04 -04:00
Joe Portner
a72b8ceffe
[6.8] Bump jquery from 3.4.1 to 3.5.0 (#64884) (#65336) 2020-05-05 17:10:13 -04:00
Chris Roberson
54c73e2f76
Once the buffer has any events, the collector is always ready (#36995) (#46379) 2019-09-23 15:47:23 -04:00
Chris Roberson
c814843540
[6.8] [Monitoring] Only do a single date_histogram agg for get_nodes calls (#43481) (#44137)
* [Monitoring] Only do a single date_histogram agg for get_nodes calls (#43481)

* I think this is working now

* Add a way to uncovert, and then fix tests

* Remove unnecessary export

* Update snapshots

* normalize this across branches

* This is just interval in 6.8
2019-08-28 08:58:45 -04:00
Mike Place
59be31e7f3
[Stack Monitoring] Re-order items in segment count legend (#43752) (#43975)
* Switch the order of primaries and total in legend

* Revert "Switch the order of primaries and total in legend"

This reverts commit 895960af10.

* Reorder legend items

* Functional test fixes
2019-08-26 16:17:29 +00:00
igoristic
ba857a0dff
Fix sorting of Monitoring nodes on CPU, Throttle, Heap columns (#36125) (#43615)
* Complete rebase

* Testing

* Retest

* Made the get method more compatible
2019-08-20 18:17:16 -04:00
Shaunak Kashyap
6dfb7adaef
[6.8] Fixing typo in Stack Monitoring error message (#42889) (#42955)
* Fixing typo

* Updating jest snapshots

* Adding missing trailing whitespace :|
2019-08-08 10:19:32 -07:00
Chris Roberson
12bbb5ed82
[6.8] [Monitoring/Telemetry] Force collectors to indicate when they are ready (#36153) (#41289)
* Backport c87e8811cb to 6.8

* Fix tests

* Add in missing functionality

* Add more missing code
2019-07-17 12:23:26 -04:00
igoristic
a213ec36c4
Added sorting to all columns (#35410) (#41149)
* Added sorting to all columns

* Added sorting to table wrapper instead

* Fixed condition

* Removed default sorting value

* Removed a log statement

* Converted beats directive into a controller
2019-07-15 13:55:56 -04:00
Chris Roberson
5caf5da7a4
Ensure we provide the cluster when toggling completed recoveries (#38543) (#38909) 2019-06-13 13:48:03 -04:00
Chris Roberson
8eb532ac3f
Minor changes to text on Alerting in Stack Monitoring application (#38388) (#38884)
* Minor changes to text.

* "Basic" is a proper name, so it should be capatalized.

* Cluster Alerts are plural.

* Fix tests to align with help text changes

* Missed one test file
2019-06-13 10:23:41 -04:00
igoristic
908e296852
Flooring number down to whole second (#38065) (#38830) 2019-06-12 16:52:09 -04:00
Chris Roberson
eb7cd29133
Remove improper usage (#37099) (#37129) 2019-05-28 12:48:32 -04:00
Ahmad Bamieh
c9633e096d [6.7] Monitoring telemetry collection interval (#34609) (#35695)
* Monitoring telemetry collection interval (#34609)

* Only collect usage data once a day from kibana monitoring
2019-04-26 23:53:02 -04:00
igoristic
388860a2fd
Showing node name instead of uid in breadcrumbs (#35553) (#35565) 2019-04-24 19:56:43 -04:00
Chris Roberson
afb09f18cc
[Monitoring] Address shard allocation color mismatch (#34086) (#35422)
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
2019-04-22 14:48:46 -04:00
Shaunak Kashyap
1e36255da9
[6.7] Fix field name for "Events Ingested" in Logstash Node List page (#35122) (#35128)
Backports the following commits to 6.7:
 - Fix field name for "Events Ingested" in Logstash Node List page  (#35122)
2019-04-15 19:39:07 -07:00
Chris Roberson
8cd353d9c8
[Monitoring] Protect against these fields not existing in Logstash Nodes listing (#34939) (#34954)
* Protect against these fields not existing

* Add basic unit tests to ensure this behavior does not regress

* Expand this test to ensure we don't break on other pieces of data missing

* Use N/A if there is no value (rather than 0)
2019-04-12 09:24:19 -04:00
Chris Roberson
20c9530e39
Backport #32654 (#34353) 2019-04-04 12:05:17 -04:00
Shaunak Kashyap
30dd4e1b69
Improve performance of the Logstash Pipeline Viewer (#33793) (#33849)
Resolves #27513.

_This PR is a combination of #31293 (the code changes) + #33570 (test updates). These two PRs were individually reviewed and merged into a feature branch. This combo PR here simply sets up the merge from the feature branch to `master`._

Summary of changes, taken from #31293:

The Logstash Pipeline Viewer UI would make a single Kibana API call to fetch all the information necessary to render the Logstash pipeline. This included information necessary to render the detail drawer that opens up when a user clicks on an individual vertex in the pipeline.

Naturally, this single API call fetched _a lot_ of data, not just from the Kibana server but also, in turn, from Elasticsearch as well. The "pro" of this approach was that the user would see instantaneous results if they clicked on a vertex in a pipeline and opened the detail drawer for that vertex. The "cons" were the amount of computation Elasticsearch had to perform and the amount of data being transferred over the wire between Elasticsearch and the Kibana server as well as between the Kibana server and the browser.

This PR makes the Kibana API call to fetch data necessary for **initially** rendering the pipeline — that is, with the detail drawer closed — much lighter. When the user clicks on a vertex in a pipeline, a second API call is then made to fetch data necessary for the detail drawer.

Based on a simple, 1-input, 1-filter, and 1-output pipeline.

* Before this PR, the Elasticsearch `logstash_stats` API responses (multiple calls were made using the `composite` aggregation over the `date_histogram` aggregation) generated a total of 1228 aggregation buckets (before any `filter_path`s were applied but across all `composite` "pages"). With this PR, the single `logstash_stats` API response (note that this is just for the initial rendering of the pipeline, with the detail drawer closed) generated 12 buckets (also before any `filter_path`s were applied). That's a **99.02% reduction** in number of buckets.

* Before this PR, the Elasticsearch `logstash_stats` API responses added up to 70319 bytes. With this PR, the single `logstash_stats` API response for the same pipeline is 746 bytes. That's a **98.93% reduction** in size.

* Before this PR, the Elasticsearch `logstash_state` API response was 7718 bytes. With this PR, the API response for the same pipeline is 2328 bytes. That's a **69.83% reduction** in size.

* Before this PR the Kibana API response was 51777 bytes. With this PR, the API response for the same pipeline is 2567 bytes (again, note that this is just for the initial rendering of the pipeline, with the detail drawer closed). That's a **95.04% reduction** in size.
2019-03-26 08:03:34 -07:00
Chris Roberson
e6f6643f04
Ensure the pipelines page utilizes reactNodeId (#33798) (#33810) 2019-03-25 15:45:08 -04:00
lcawl
62b80dc520 Fixes broken link 2019-03-22 12:41:58 -07:00
Chris Davies
c808aff397
Get Kibana 6.7 tests passing when run against Elasticsearch 7.0 (#30647) 2019-02-21 15:33:04 -05:00
Jonathan Budzenski
b4864042f9
[monitoring] only start bulk uploader once (#31307) 2019-02-21 11:30:09 -06:00
Chris Roberson
46538f49a5
[Monitoring] Add mappings for standalone archives and fix tests (#31315) (#31470)
* Add mappings for standalone and fix tests

* We are apparently mutating this and need to return a copy each time
2019-02-19 10:06:08 -05:00
Chris Roberson
41eebe6747
Use an empty array if this does not exist (#30322) (#31025) 2019-02-13 22:14:41 -05:00
Pete Harverson
e8f5dfddea
[ML] Handle removal of backend ml.enabled node attribute (#27604) (#30669) 2019-02-12 10:43:00 +00:00
Caroline Horn
eb77967d76
[6.7] EUI 6.10.0 & Background color fixes (#30136) (#30323) 2019-02-07 12:44:26 -05:00
Chris Roberson
ef6b3c0e98
Ensure we are showing the cluster name in the breadcrumbs (#30087) (#30108) 2019-02-05 14:30:12 -05:00
Chris Roberson
fbe7667568
Backport #28840 (#30002) 2019-02-04 21:18:06 -05:00
Ryan Keairns
4d748d29dc
Monitoring design touchup (#29479) (#29764)
* UI design touchup for 7.0

* clean up chart titles and beta icon

* Make shard list wrap on IE11

* wrap table cells with much content

* fix title height above graphs on ie11

* update tests and snapshots

* update functional test for node detail

* fixing more functional tests
2019-02-04 16:46:02 -06:00
Chris Roberson
15147b94f6
Backport #29757 (#29993) 2019-02-04 16:47:42 -05:00
Chris Roberson
58a9738657
[Monitoring] Add default search fields for each table (#29748) (#29981)
* Add default search fields for each table

* Remove custom schema

* We don't need it here

* Add ccr tables

* Fix tests
2019-02-04 15:02:22 -05:00
Jonathan Budzenski
b13074d75a
Fix plugin deprecations (#29737)
* [deprecations] convert flattened settings to nested settings

* [deprecations] reuse rename method for elasticsearch.url to elasticsearch.hosts

* newline

* add known issues to docs
2019-02-04 13:32:55 -06:00
Aleh Zasypkin
e7c5c0bf3d
[6.x] Introduce I18nService core service and I18nContext. (#29944) 2019-02-04 14:39:45 +01:00
Matthew Kime
ad92f4b451
[6.x] Management: EUI Navigation sidebar (#25905) (#29490)
* Management: EUI Navigation sidebar (#25905)

* partial work - sidebar works, need to address rendering issues

* rendering fixes

* refactor sidenav into its own file

* refactor sidenav into its own file

* remove unneeded changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove more unneeded EuiPage

* remove more unneeded EuiPage

* snap snap

* remove unused dependencies

* functional tests

* sidebar tweaks, beats-cm

* lint

* properly sharing UI code

* fix eui export

* type fixes

* add test

* add test

* testy test

* partial progress

* attmpt to fix functional test

* from merge

* snap snap

* clean up management for side nav changes

* functional test fix

* snap, blank landing

* snap snap

* change management item order

* test fix

* disable tslint line

* ts fix

* functional test fix

* functional test fixes

* fix functional test

* minor cleanup

* simplify management registry callback

* remove comment

* react island with kibana version

* merge

* fix scss reference

* fix types

* remove mistaken commit

* remove k7 switch

* snapshot update

* fix sidebar nav headers

* landing page copy

* remove dummy text

* merge

* i18n and revert unneeded change

* Update edit_role_page.tsx

* i18n

* i18n

* snap snap

* better text

* snap snap

* mergi

* pop open nav on mobile

* add management section tests

* NOTICE

* fix subhead text, add padding to bottom of management nav

* Update sidebar_nav.tsx

* merge merge

* fix sass lint

* .

* snap snap

* snap snap
2019-01-31 14:31:18 -06:00
Chris Roberson
4dec7f6505
Fix issue where the date format isn't passed in properly (#29637) (#29642) 2019-01-30 15:20:29 -05:00
Chris Roberson
b149dd01e0
[6.x] [Monitoring] Fix issues with the localization effort (#29372) (#29611)
* [Monitoring] Fix issues with the localization effort (#29372)

* Fix issues with the localization effort, mainly due to two ongoing refactors in the same code

* Apply suggestions from code review

Co-Authored-By: chrisronline <chrisronline@gmail.com>

* PR feedback

* Fix broken test
2019-01-30 11:14:21 -05:00
Chris Roberson
67dc8c080c
[Monitoring] Await promise properly (#29001) (#29504)
* Await this promise

* Add one additional log message and a test around that
2019-01-29 10:12:25 -05:00
Chris Roberson
97e5be671a
[6.x] [Monitoring] Support for unlinked deployments (#28278) (#29340)
* [Monitoring] Support for unlinked deployments (#28278)

* Unlinked deployment working for beats

* Use better constant

* Show N/A for license

* Rename to Unlinked Cluster

* Use callout to mention unlinked cluster

* PR feedback

* Use fragment

* Speed up the query by using terminate_after

* Handle failures more defensively

* Remove unnecessary msearch

* PR feedback

* PR feedback and a bit of light refactor

* Updated text

* Add api integration tests

* Localize call out

* Update loc pattern

* Fix improper i18n.translate usage

* Revert "Fix improper i18n.translate usage"

This reverts commit 0e2e7608c3.

* Revert "Update loc pattern"

This reverts commit cc99fe8a8a.

* Ensure the unlinked deployment cluster counts as a valid cluster

* Sometimes, you miss the smallest things

* Ensure the unlinked cluster is supported, in that users can click the link and load it

* Update tests

* PR feedback. Simplifying the flag supported code and adding more tests

* Update naming

* Rename to Standalone Cluster

* Remove unnecessary file

* Move logic for setting isSupported to exclusively in flag supported clusters code, update tests

* Fix up the data for these tests
2019-01-28 21:12:14 -05:00
Chris Roberson
c9241a3d5e
Fix backport conflicts (#29436) 2019-01-28 13:06:36 -05:00
Jason Rhodes
d39bebde67
Updates React et al to 16.6 (#24707) (#29203)
* Updates react to 16.6 (latest)

* Updated fragment-based snapshots for Kibana root unit tests

* Updated fragment-based snapshots for x-pack unit tests

* Removed xpack yarn.lock file bc it is no longer needed, it was reintroduced by accident during a rebase in this branch

* React 16.6 snapshot updates, round 2 (mostly Fragment snapshot diffs)

* Updated last round of React 16.6 snapshots

* Fixes query bar issue with 16.4 gDSFP lifecycle

* Updated yarn lock (arraybuffer.slice updated)

* Updates snapshots where executeQueryOptions prop appears
2019-01-23 14:35:39 -05:00
Chris Roberson
e8f59516d3
[Monitoring] Move os info into OSS collection (#28605) (#28937)
* Move os info into OSS collection so the stats api can access it

* Fix tests

* copy this back for now

* Use server decorate to share from OSS to x-pack/plugins
2019-01-17 13:10:10 -05:00
Nathan Reese
973eeb9a1d
merge conflicts in snapshot (#28773) 2019-01-15 15:38:37 -07:00
Spencer
8a5bcbc7aa
[uiExports/styleSheetPaths] avoid string concatenation for paths (#27471) (#27644) 2019-01-14 11:47:10 -08:00
nicknak
5ce826af2f
Testing x pack jest integration (#26825) (#28518)
* progress

* progress

* cleanup and elastic configs

* make upgrades to support adding aditional users, with

* use defaultDeep to ensure settings pass correctly

* move needed configs to start servers into kbn_server (except x-pack plugin paths and users)

* move xpack config to an export

* add more time

* diff rollbacks

* roll back prettier diff

* revert setupUsers signature

* remove more bluebird

* update bluebird for fixes with jest compatability

* fix ts errors

* dont allow jest to keep going making errors confising

* Separates configs for jest integration core/x-pack.

* Pass nested kbn config parameters.

* Adds example x-pack integration test using live es.

* Cloud detectors should be configurable for tests.

* Cloud detectors should use native promises only.

* No erroneous comments...

* Util is only for promisify, duh!

* New tests should have docuementation to help those looking to utilize them.

* Doc section headings should be consistent with each other.

* With git there is no need to commit commented code.
2019-01-11 13:17:48 -05:00