Commit graph

17756 commits

Author SHA1 Message Date
gchaps b8494d8594
[DOCS] Add info to 6.x upgrade doc (#20987) 2018-07-19 14:27:49 -07:00
Tim Sullivan 8fc67c064a
Stats API: implement the "kibana status" spec from the Monitoring data model for stats (#20577) (#20956)
* [Stats API] Set API field names per spec

* fix jest tests

* fix api integration test

* trash the original metrics collector

- constantly accumulating stats over time does not align with the existing behavior, which is to reset the stats to 0 whenever they are pulled

* move some logic out of the collector types combiner into inline

- change the signature of sourceKibana

* Make a new stats collector for the API

- to not clear the data when pulling via the api
- fetching is a read-only thing

* isolate data transforms for api data and upload data

* no static methods

* remove external in bytes

* remove the _stats prefix for kibana and reporting

* update jest test snapshot

* fix collector_types_combiner test

* fix usage api

* add test suite todo comment

* reduce some loc change

* roll back mysterious change

* reduce some more loc change

* comment correction

* reduce more loc change

* whitespace

* comment question

* fix cluster_uuid

* fix stats integration test

* fix bulk uploader test, combineTypes is no longer external

* very important comments about the current nature of stats represented and long-term goals

* add stats api tests with/without authentication

* fix more fields to match data model

* fix more tests

* fix jest test

* remove TODO

* remove sockets

* use snake_case for api field names

* restore accidental removal + copy/paste error

* sourceKibana -> getKibanaInfoForStats

* skip usage test on legacy endpoint

* fix api tests

* more comment

* stop putting a field in that used to be omitted

* fix the internal type to ID the usage data for bulk uploader

* correct the kibana usage type value, which is shown as-is in the API

* more fixes for the constants identifying collector types + test against duplicates

* add a comment on a hack, and a whitespace fix
2018-07-19 12:03:57 -07:00
Alex F cfe99304ac
Update Cloud tutorial instructions to work with UCv2 (#20950) (#21001)
Updated some of the text in the manifest file for on-prem cloud, now in 6.x
2018-07-19 14:52:27 -04:00
liza-mae db6e57ed71
skip test (#20986) (#20992) 2018-07-19 12:01:20 -06:00
James Gowdy c30bfa32bd
[ML] Better handling of job request timeouts (#20985) (#20990) 2018-07-19 18:08:24 +01:00
Tim Sullivan 85a9e286a1
[Telemetry] move x-pack/monitoring collector classes to src/server/usage (#20248) (#20955)
* [Monitoring/Telemetry] Move Usage service from Monitoring to Kibana core

* fix tests

* fix reporting integration

* roll back more diffs

* roll logger into bulk uploader to remove file duplication

* fix xpack usage api

* subclass constructor is not needed

* collectorSet has factory methods for collector object creation

* fix reporting usage jest test
2018-07-19 09:32:34 -07:00
Nicolas Ruflin cf872b25dc
Add beta modules to add Data UI (#20923) (#20972)
The following modules are added with the beta label:

* aerospike
* couchbase
* dropwizard
* elasticsearch
* etcd
* haproxy
* kafka
* kibana
* memcached
* munin
* windows
2018-07-19 16:33:57 +02:00
Tudor Golubenco c81952daad
Add new tutorials: Osquery, RabbitMQ, and uWSGI (#20944) (#20975)
* Osquery tutorial, under Security

* Rabbitmq tutorial

* uWSGI metrics tutorial

* Marked another two tutorials as Beta
2018-07-19 16:05:17 +03:00
James Gowdy a9baa029b7
[ML] Changing edit job icon (#20935) (#20967) 2018-07-19 12:30:14 +01:00
Nicolas Ruflin 1e88f0153d
Add Beta Ceph metrics module to Kibana Home (#20223) (#20973)
<img width="2043" alt="screen shot 2018-06-29 at 12 43 22 pm" src="https://user-images.githubusercontent.com/373691/42109208-1aedc92e-7b9a-11e8-8c96-1c9be12a10d1.png">

<img width="2042" alt="screen shot 2018-06-29 at 12 43 30 pm" src="https://user-images.githubusercontent.com/373691/42109217-1f81ce40-7b9a-11e8-8eca-f3e8695b9e7f.png">
2018-07-19 13:20:44 +02:00
Aleh Zasypkin b8cf07942e
[6.x] Document the way new platform is integrated into legacy one. (#20966) 2018-07-19 09:54:10 +02:00
Aleh Zasypkin 750b6b8251
[6.x] Log correct Kibana URL when TLS is enabled and log it only once. (#20954) 2018-07-19 07:47:01 +02:00
Spencer 17694da5be
[6.x] [tslint] enable no-default-export rule (#20952) (#20961)
Backports the following commits to 6.x:
 - [tslint] enable no-default-export rule  (#20952)
2018-07-18 20:53:09 -07:00
Nathan Reese 8ea7af9511
merge conflicts (#20959) 2018-07-18 21:11:48 -06:00
James Gowdy d19079f6e3
[ML] Adding close jobs menu item (#20927) (#20938)
* [ML] Adding close jobs menu item

* changing icon

* updates based on review

* adding extra check for close failure

* adding extra guard against missing response
2018-07-18 23:52:46 +01:00
Nathan Reese fe2f671d0a
[home] Include ability to publish kibana saved objects from add data tutorial (#19559) (#20939)
* add savedObjects to tutorial schema, add savedObjects to APM, add bulk create endpoint

* SavedObjectInstaller component

* bulkCreate fixes

* fix tutorial jest test

* update from sqren review

* updated copy

* move saved object json into seperate json files

* minor commit clean up

* ensure isMounted before setting state after async call, allow manifest to customize saved object install message

* remove duplicated logic for getting config xpack.apm.indexPattern

* refactor get index pattern title

* add functional test that loads APM saved objects

* remove extra await

* display overwrite message

* use angular free savedObjectClient

* functional test cleanup

* handle bulkRequest exception and add jest tests for SavedObjectsInstaller

* use Promise.reject instead of throw

* update copy
2018-07-18 12:17:54 -06:00
liza-mae 0b39582294
Improve visualization tests (#20782) (#20932)
* Improve tests for histogram, tag cloud, input controls and enable lab mode.

* enable skipped tests

* Update shakespeare test navigation to visualize

* Add sleep to shakespeare test

* Skip shakespeare test for now, it is not clear why it is failing and does not fail locally, need the other tests to run in CI

* Revert selector for selectAggregation, re-enable shakespeare test

* skip vega spec text test, was not fixed with changes

* Enable only visualize tests to run, need to see results and it's being blocked by other test failures

* Enable all tests again, visualization tests all passed

* Skipping sample data test due to bug #20807, let's see if rest of the tests pass
2018-07-18 09:08:50 -06:00
Walter Rafelsberger a51af838b4
[ML] Moves tooltip of info icon to top to avoid overlapping with corresponding form fields. (#20874) (#20928) 2018-07-18 15:46:37 +02:00
Tim Roes 6a9b2f975c
Move del to dependencies (#20921) (#20926) 2018-07-18 15:19:49 +02:00
Spencer 360c50b7f3
[core/ui] bootstrap the legacy platform within the new platform (#20699) (#20913)
Fixes #20694

Implements super basic new platform `core` system, which includes two services: `core.injectedMetadata` and `core.legacyPlatform`. The `core` currently has two responsibilities:

 1. read the metadata from the DOM and initialize the `ui/metadata` module with legacy metadata, proving out how we plan to expose data from the new platform through the existing APIs/modules to the legacy platform.
 2. bootstrap the legacy platform by loading either `ui/chrome` or `ui/test_harness`

Because `core` mutates the `ui/metadata` module before bootstrapping the legacy platform all existing consumers of `ui/metadata` won't be impacted by the fact that metadata loading was moved into the new platform. We plan to do this for many other services that will need to exist in both the legacy and new platforms, like `ui/chrome` (see #20696).
2018-07-17 23:56:03 -07:00
Hendrik Muhs 31eb567558
[Monitoring/ML] add number of forecasts to monitoring overview (#20758) (#20889)
Add forecasts (Number of forecasts for an ml jobs) as column to the ML Jobs monitoring page. Related to: elastic/elasticsearch#31647
2018-07-18 08:08:47 +02:00
CJ Cenizal 05bbe62abb
Add SearchStrategyRegistry and defaultSearchStrategy to support existing search behavior, and integrate it with CallClient. (#20497) (#20912)
* Add SearchStrategyRegistry and defaultSearchStrategy to support existing search behavior, and integrate it with CallClient.
* Move fetch param logic from CallClient into defaultSearchStrategy.
* Move defaultSearchStrategy configuration into kibana plugin via search uiExport to avoid race conditions with other plugins.
* Add call-out react directive.
* Show error in Discover if user tries to access a rollup index pattern without the right search strategy. Sentence-case copy in field chooser.
* Add tests with multiple searchStrategies and fix errors in logic.
2018-07-17 20:12:13 -07:00
liza-mae 6f7bc88b09
Add telemetry false for dashboard tests (#20901) (#20906) 2018-07-17 20:48:32 -06:00
Stacey Gammon 2355bb10c3
Bump eui (#20774) (#20909)
* bump eui

* Fixed breaking `EuiPage` changes

Mainly adding `EuiPageBody`’s where there were none

* bump to 3.0, remove duplicate declaration of EuiFlyoutBody, update jest snapshots

* bump eui

* bump to 3.0, remove duplicate declaration of EuiFlyoutBody, update jest snapshots

* Update jest snapshots in xpack
2018-07-17 20:45:11 -04:00
Spencer 215c41c4dc
[6.x] [kbn-plugin-generator] Fix plugin naming inconsistency (#20808) (#20898)
Backports the following commits to 6.x:
 - [kbn-plugin-generator] Fix plugin naming inconsistency  (#20808)
2018-07-17 17:36:53 -07:00
Nathan Reese 2747d5e848
fix flaky input control chained test (#20642) (#20886)
* add check that combobox was successfully cleared

* run test 25 times

* checkin the correct files this time

* re-enable skipped test

* remove extra test loaders
2018-07-17 11:24:26 -06:00
CJ Cenizal cb774024d1
Update JS style guide with rule for prefixing private class methods with an underscore. (#20851) (#20891) 2018-07-17 10:00:32 -07:00
Nick Peihl 7a09570e2f
Add link to maps.elastic.co to region maps docs (#20645) (#20887) 2018-07-17 09:19:40 -07:00
Tyler Smalley 5303aae152
[test][kbn-plugin-helpers] Skip install dependencies (#20649) (#20871)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-17 08:05:58 -07:00
James Gowdy 0eefc228f2
[ML] Better error notifications in jobs list (#20880) (#20881)
* [ML] Better error notifications in jobs list

* removing test data
2018-07-17 16:01:44 +01:00
Nathan Reese 8aa0984042
properly render disabled range control (#20811) (#20869)
* properly render disabled range control

* remove disabled from existing elements
2018-07-17 08:53:12 -06:00
Pete Harverson fd97bd3557
[ML] Adds page to ML Settings for viewing and editing filter lists (#20769) (#20873)
* [ML] Add page to ML Settings for viewing and editing filter lists

* [ML] Edits to Filter Lists Settings page following review
2018-07-17 11:12:24 +01:00
Spencer 020d7a30a3
[esArchiver/test] use different lengths for random to ensure unique values (#20857) (#20861)
fixes #20741

Rather than just generate random words with the default length of 2, generate a random 5 letter word for the type to filter by and 10 letter words for the other types, so there will never be more than 3 records with `type1`.
2018-07-17 02:30:46 -07:00
Felix Stürmer 021ca43849
Upgrade typescript to 2.9.2 (#20757) (#20865)
This upgrades TypeScript to version 2.9.2. My main motivation is the support for generic type arguments in JSX elements and tagged templates (e.g. for `styled-components`).

Problems arising from breaking changes in the new TypeScript version have been mitigated by:

* setting the `keyofStringsOnly` option until impacted code has been
  future-proofed
* Restricting some joi-related generics

See the [release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html) for details.

Some follow-up tasks should be:

* Update EUI to support the new `keyof` behaviour
* Update new platform TypeScript code to support new `keyof` behaviour
* Remove `keyofStringsOnly` setting
2018-07-17 11:23:09 +02:00
Tim Roes d354507d49
Fix flickering of vislib on refresh (#20817) (#20847) 2018-07-17 09:08:51 +02:00
Spencer c77511f9bb
[6.x] [tslint] add helper for running tslint on specific projects (#20866) (#20868)
Backports the following commits to 6.x:
 - [tslint] add helper for running tslint on specific projects  (#20866)
2018-07-16 21:50:42 -07:00
Tim Sullivan efdd408674
Add Beats module and input info to Telemetry (#20648) (#20856)
* fix metrics field name (stats)

* add state info

* add module name count

* use a set for the unique hosts instead of a map

* fix getting beats_state info

* fix unit test

* processBeatsStatsResults and processBeatsStateResults
2018-07-16 15:23:56 -07:00
John Dorlus c50c6fc6b4
Updated data test subject to use correct property from item object. (#20794) (#20797) 2018-07-16 16:16:40 -04:00
CJ Cenizal 5d1ea11b29
Remove courier:searchRefresh angular event from searchPoll. (#20850) (#20854) 2018-07-16 13:08:12 -07:00
James Gowdy 9157cf714c
[ML] Jobs list bug fixes (#20823) (#20829) 2018-07-16 18:05:02 +01:00
Tyler Smalley 08c1c14e60
Workaround for yarn interdependency conflicts (#20805) (#20826)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-16 09:10:31 -07:00
James Gowdy d8959f1ae4
[ML] Removing hardcoded datafeed ID in jobs list (#20815) (#20816) 2018-07-16 15:05:27 +01:00
Chris Roberson a5f2725aea
[Monitoring] Capitalize the license type (#20683) (#20795)
* Capitalize the license type in monitoring

* Revert "Capitalize the license type in monitoring"

This reverts commit 38ad3a516d.

* Pass in the type capitalized

* Revert "Pass in the type capitalized"

This reverts commit 6a05bb12f3.

* Capitalize type in license status directly so consumers do not need to worry about it
2018-07-16 09:45:01 -04:00
Matt Bargar 0d24257138
Ensure the field exists in the index pattern before grabbing it (#20639) (#20796) 2018-07-16 09:00:38 -04:00
James Gowdy 0eabaf7221
[ML] removing unnecessary privileges provider (#20671) (#20814) 2018-07-16 11:38:53 +01:00
liza-mae ecafae1a6e
Skipping test due to bug #20807 (#20809) (#20812) 2018-07-14 18:31:35 -06:00
gchaps 090b560795
[DOCS] Update Managing Indices w/ info about security (#20632) (#20778)
* [DOCS] Update Managing Indices w/ info about security

* [DOCS] Incorporated review comments for indices management doc

* [DOCS] Incorporated review comment re: security enabled
2018-07-13 14:48:31 -07:00
gchaps 750a855627
[DOCS] Dashboard-only-mode: Update to match UI (#20734) (#20773)
* [DOCS] Dashboard-only-mode: Update to match UI

* [DOCS] Incorporated review comments, added note about data access
2018-07-13 13:41:23 -07:00
Nathan Reese 5fae20eec0
de-angularize indexPatterns Field and FieldList (#20589) (#20787)
* de-angularize indexPatterns Field and FieldList

* do not remove shortDots angular filter

* remove ui/chrome mock in _index_pattern test
2018-07-13 14:33:28 -06:00
John Dorlus 38c44389cf
[Management] Relationships API test coverage (#19737) (#20788)
* Added coverage around search and dashboard tests.

* Added tests to check for whether the resource is available. If not, return 404.

* Skipped two tests due to https://github.com/elastic/kibana/issues/19713. Added error handling for relationships API for when no result is found. Return 404.

* Applied patch file per PR.

* Applied Chris patch and tested locally. No failures.

* Removed ajv and utilised joi for schema validation.

* Fixed package.json.

* Copied package.json description from master.

* Reverted package.json and made proper edit.
2018-07-13 15:33:37 -04:00