Commit graph

22438 commits

Author SHA1 Message Date
Shaunak Kashyap
7b68b89ef1
Removing deprecated xpack.monitoring.report_stats setting (#30017)
* Removing deprecated xpack.monitoring.report_stats setting

* Remove from docs

* Update check in xpack_main plugin to not look at monitoring settings any more
2019-02-04 19:37:32 -08:00
Nathan Reese
908b387236
[Maps] add saved objects for all sample data sets (#28797)
* [Maps] add saved objects for all sample data sets

* add functional tests that compare sample data maps to baseline images

* add check for layer loading in functional tests

* try something out in CI

* try map without EMS regions

* add weblogs test but hide region layer

* skip tests with EMS vector layers

* gis-map to map and ES_GEOHASH_GRID to ES_GEO_GRID

* add resolution property to ES_GEO_GRID source descriptor

* move alphaValue from style descriptor to layer descriptor and rename to alpha

* terms join label change 'group by' to 'of'

* ensure sample data sets work with no internet access

* get functional tests working with updated full screen snapshots

* delete gis folder left overs

* give time for visibility to toggle to fire

* make web logs screen comparision more forgiving

* wait for layers to load on full screen
2019-02-04 20:18:11 -07:00
Matt Apperson
53a60b9f0f
[BeatsCM] Fix licence error (#29610)
Fixes #28417
2019-02-04 17:34:34 -05:00
Justin Kambic
e9d0f1b58d
[Uptime] Port unit tests to master (#29876)
* Uptime unit tests6.x (#29280)

* Add API functional tests for uptime graphQL.

* Remove obsolete code.

* Add CI group for UI functional tests.

* Delete obsolete code, rename heartbeat es archive.

* Refactor adapter methods.

* Refactor adapter methods.

* Attempt to fix ci-group tag error.

* Skip functional app tests until later PR.

* Remove unused code.

* Add unit tests for ping list and snapshot components.

* Add additional unit tests.

* Remove unused variable.

* Update tests for EmptyState component.

* Update ErrorList component tests.

* Update monitor list unit test.

* Add tests for EmptyStatusBar component.

* Write test for FilterBar component.

* Update PingList test to work with 7.x data.

* Delete obsolete snapshot.

* Add test for Snapshot component.

* Update types.

* Add snapshot histogram test.

* Write tests and improve histogram data formatting function.

* Fix bug and add test to data format function.

* Remove unused localization value.

* Resolve localization conflict.

* Clean up guaranteed truthy property reference.

* Remove expression from localization default message.
2019-02-04 17:05:04 -05:00
Jason Rhodes
674a6aa2ef
Fix branch frozen indices (#29970)
* Adds frozen index param to ES queries

* Added include frozen setting to debug output

* Updates tests with new request method
2019-02-04 17:02:13 -05:00
Matthew Kime
beee5f8a0e
grep and replace kibana/indices (#29571) 2019-02-04 16:02:07 -06:00
Tiago Costa
64334ca26e
Upgrade assistant telemetry (#28878)
* feat(NA): very first version with telemetry working for the upgrade assistant.

* refact(NA): import all types from a file and rewrite first version code.

* chore(NA): missing types for register and makeCollector functions.

* test(NA): tests for upgrade assistant telemetry routes.

* refact(NA): extra spaces on imports and imports order.

* test(NA): for ui_open saved objects on upgrade assistant telemetry.

* test(NA): for usage_collector functions.

* chore(NA): change the return object into the upgrade assistant telemetry.

* chore(NA): fix type imports.

* fix(NA): importing saved objects client types.

* refact(NA): simplify saved objects schema for upgrade assistant telemetry.

* feat(NA): only send upgrade assistant metrics after we have data. Never send telemetry info about a clicked tab if it is the current selected one.

* fix(NA): typo on word

* feat(NA): add telemetry schema support for for ui_reindex.

* test(NA): update integration test fixture to include new telemetry stats.

* chore(NA): fix mappings for ui_reindex.

* refact(NA): invest telemetry local expect data order.

* chore(NA): includeDefaults for callCluster.

* chore(NA): remove ignore 404 from callCluster.

* refact(NA): wrap get logging status from cluster settings into a function.

* feat(NA): add reindex ui telemetry.

* fix(NA): typo on mappings. fix(NA): non wait for send telemetry to complete will cause es doc errors when increment counters

* test(NA): wait for telemetry requests to end before esArchiver.unload on functional tests.

* refact(NA): remove bad added async to tabs onclick function.
2019-02-04 21:24:31 +00:00
Chris Roberson
4dab26ab58
[Monitoring] Add flag to enable/disable CCR monitoring UI (#28840)
* Add flag to enable/disable CCR monitoring UI

* Use the cluster setting instead of a new config

* Remove debug

* Update based on PR feedback

* Ensure the CCR tab shows up on the CCR page

* Rework this so we remove the janky UX

* Update tests

* Handle both string and boolean

* Remove debug

* Fix tests

* Refactor this to use the stack_stats part of the cluster_stats document

* Update the api integration tests

* Fix this test

* Remove debug
2019-02-04 16:15:14 -05:00
Chris Roberson
fba727b2c0
[Monitoring] Address some UI regressions with shard allocation (#29757)
* Address some UI regressions with shard allocation

* Renable the shard tests, and a couple others that are disabled

* PR feedback
2019-02-04 15:15:09 -05:00
Josh Dover
888217dc0f
Upgrade Assistant Follow-ups (#29663)
* Check security privileges before allowing reindexing

* Add global readyForUpgrade flag for Cloud

* Add ml_settings to cluster_settings

* Generalize locking mechanism for stop/starting watcher

* Display ML/Watcher stopping/resuming steps in UI

* Fix type issues

* Handle security being disabled for privilege check

* Use xpack_main.info + add types

* Fix x-pack builds
2019-02-04 13:36:42 -06:00
Matt Apperson
564cb528c2
[BeatsCM] Add logging endpoint to get errors and status info back from beats - WIP (#29289)
* Types, and index pattern moved to new format

* fix imports

* API now doing full validation on config blocks

* progress pre-move-blocks to their own api

* Config is now stored as a JSON string keyword to prevent conflict

* New API server is working

* fixing types — progress

* “fixed” all types

* add lib and most adapter methods needed

* wired up more plumbing

* added REST adapter to client for config blocks

* fix some tests

* connect new APIs to beat details page

* fix typo causing several failing tests.

* update test data

* API bug fixes

* fix remaining testing

* revert index name change

* add new routes

* remove whitespace

* fix spelling

* wiring things up and adapting to the new UI

* config block creation works in UI

* config blocks now show up once added

* adding paging to tables

* config list paging works

* version check for UI changes

* fix types

* Update the rest of config UI, still needs create API connection

* create now mass creates tags after tag is created, edit creates and deletes configs in real time

* create config blocks when creating tags

* propperly load tags on their own for beats

* load inital config blocks on edit page

* wired up initial pass at assignable tags

* assignments now work.

* squash many bugs with tag creation, editing, as well as k7 breadcrumbs

* fix label id

* Fix the displaying of module types

* bug fixes for deleting config blocks during initial tag creation

* make name really required on initial walkthrough tag creation

* Fix and enhance deleting a config block from existing tag

* Initial non-working endpoint that validates API and response

* init new endpoint

* beat ID is required

* returns 400 if beat not found

* fix memory adapter for configs

* add new libs to compose

* add index template

* tweak types

* move index template logic to ES event hook

* propperly wait for ES

* add lifecycle names

* fix translations, remove old config update from API

* insert status into ES

* remove old tests

* added RUNNING status

* expand types

* Re-init route

* dont map litterals

* convert timestamp
2019-02-04 14:18:29 -05:00
Chris Roberson
b10540f06f
[Monitoring] Add default search fields for each table (#29748)
* Add default search fields for each table

* Remove custom schema

* We don't need it here

* Add ccr tables

* Fix tests
2019-02-04 14:11:46 -05:00
Justin Kambic
2320f15b9b
Allow greater than default size for snapshot count. (#29681) 2019-02-04 13:16:42 -05:00
Luke Elmers
22933775ac
Prepare for cutover to vis data loader (#29873) 2019-02-04 11:03:13 -07:00
Pete Harverson
6afcc28c3b
[ML] Edits to labels in the Apache and Nginx ECS data recognizer modules (#29935) 2019-02-04 17:19:25 +00:00
Søren Louv-Jansen
f782b9fe35
[APM] Add support for chained exceptions (#29345)
* [APM] Add support for chained exceptions

* Rename constants to elasticsearch_fieldnames
2019-02-04 18:08:23 +01:00
Søren Louv-Jansen
a5724bda68
[APM] Flip transaction.name to keyword by default (#29718) 2019-02-04 18:08:02 +01:00
Chris Cowan
a5aa0dc3e9
[Infra UI] ECS Migration (#28205)
* updating fields

* Migrate to ESC event.dataset

* Migragte fields to ECS fields

* renaming variable

* Reverting back to host.name

* Changing from Top Hits to Terms Agg for getting node name; change host.name back to host.hostname for name.

* Changing back to host.name

* Moving from using the document source to an aggregation for node name

* Updating tests with new data format and data.

* removing unused fields

* adding test data for docker 6.6.0

* Adding docker tests for 6.6.0

* Fixing jest tests

* Fixing tests

* Adding the most critical line of code in the entire project

* Fix ECS-compatible apache rules and restore old ones

* Fix ECS-compatible nginx rules and restore old ones

* Add tests for apache2 in ECS and pre-ECS format

* Add tests for nginx in ECS and pre-ECS format

* removing console.log

* Fixing tests
2019-02-04 09:47:03 -07:00
Nathan Reese
4f42dde279
[Maps] fix full screen (#29958) 2019-02-04 09:22:07 -07:00
Justin Kambic
1925ee9566
Add loading states for Snapshot and Filter Bar. (#29858) 2019-02-04 11:18:45 -05:00
Sarah Hersh
bf866030c7
fix broken image link of time filter page (#29961) 2019-02-04 11:14:40 -05:00
Aaron Caldwell
f8a5e99396
[Maps] Add zoom in/out map controls (#29862)
* Add zoom in/out map controls

* Line up parens
2019-02-04 08:39:41 -07:00
Sarah Hersh
3cd087663b
[Docs]Updates to Discover docs (#29868) 2019-02-04 10:20:24 -05:00
Thomas Neirynck
bfbce22165
Use Kibana locale when loading content from the Elastic Maps Service (#29671) 2019-02-04 09:55:55 -05:00
Casper Hübertz
8604e8f3f4
[APM] Replace colour vars with EUI (#29822)
Refactored all use of custom APM UI colour variables and replaced with EUI theme
2019-02-04 15:42:38 +01:00
Sonja Krause-Harder
d42a3f484e
[Infra UI] Always pass index patterns as strings. (#29927)
* Always pass index patterns as strings.

* Abide by prettier rules.
2019-02-04 15:17:29 +01:00
Court Ewing
475dd5651b
Content security policy strict mode (#29856)
A content security policy is a great addition to the protections built
into Kibana, but it's not effective in older browsers (like IE11) that
do not enforce the policy.

When CSP strict mode is enabled, right before the Kibana app is
bootstrapped, a basic safety check is performed to see if "naked" inline
scripts are rejected. If inline scripting is allowed by the browser,
then an error message is presented to the user and Kibana never attempts
to bootstrap.
2019-02-04 09:09:40 -05:00
Aleh Zasypkin
d05437703d
Introduce I18nService core service and I18nContext. (#29379) 2019-02-04 13:38:00 +01:00
Walter Rafelsberger
7966b2ff78
[ML] adds telemetry to ML (#29121)
Adds telemetry to collect the amount of indices created using File Data Visualizer.
2019-02-04 13:14:25 +01:00
Sébastien Loix
2c257df717
[Watcher] Add missing Action types on client (#29818)
* Add missing Webhook action on client
2019-02-04 13:11:16 +01:00
Felix Stürmer
cc13b77a02
[Infra UI] Add a source settings ui (#26786)
This adds a configuration UI to change various properties of an infrastructure data source. The properties that can be currently changed are:

* name
* index pattern for metrics
* index pattern for logs
* fields like the timestamp, container/host/pod identification

It is meant as a basis for providing configurability for other source properties like outgoing links and formatting rules in the future.
2019-02-04 12:56:02 +01:00
Kerry Gallagher
732915ee2a
[Infra UI] Handle no metrics data gracefully (#29424)
* Use metric_time prefix for metric_time actions

* Add refetch capabilities to with_metrics

* Pass through refetch to index

* Add no data message and refetch button to metrics/index

Next stage: Extract into shared component between metrics and waffle map

* Remove "refetching" and just use "loading"

No need for the explictness, just reuse the loading state, as there's no value to differentiating refetching vs loading here

* Add no_data component

* Amend for Prettier

* Use no_data component

* Change naming to better reflect current components

* Introduce notion of two empty states: no indices and no data

Also changes nodes_overview and logs to use moved component

* Add no_data functionality

* Remove metrics specific no data component, use the new shared component

* Change import order

* Use no_data component in nodes_overview

* Refactor logs to use shared no data component

* Import intl

* Revert testing value

* Pass handler correctly to avoid circular references

* Satisfy type check

* Remove one last unused component
2019-02-04 10:27:26 +00:00
Joe Reuter
93fef68647
Fix fieldformatter calls in pipeline helper and add functional test for range aggs (#29842) 2019-02-04 11:25:06 +01:00
Spencer
daf19f8a5a
[sass/mixins] move kibanaFullScreenGraphics keyframes to mixin (#29897) 2019-02-03 23:07:00 -08:00
Nathan Reese
1c09fe70fd
[Maps] provide better error message when vector shapes can not be fetched (#29888) 2019-02-03 21:21:50 -07:00
Nathan Reese
82dcf123db
[Maps] Add layer - provide message when EMS is unavailable (#29909)
* [Maps] provide message when EMS is unavailable

* small fixes
2019-02-03 20:44:23 -07:00
Nathan Reese
8d150e7379
[Maps] make getStore syncrouns (#29895) 2019-02-03 20:38:17 -07:00
Spencer
bc5d5143d4
[darkMode] Prevent success toast until uiSetting saved (#29898)
* [uiSettings] add getSaved$() for setting updates that have been saved

* [styles/theme] only prompt for refresh when setting is saved
2019-02-02 16:23:22 -08:00
Josh Dover
c0a2e8014e
Make ReindexWorker resilient to ES connection issues (#29908) 2019-02-02 12:11:25 -06:00
Nathan Reese
6888cd49ca
[Maps] Full screen (#29751)
* [Maps] full screen

* toggle fullScreen class

* remove unneeded class

* more specific class name

* change i18n name space to common.ui

* clean up scss imports
2019-02-02 06:19:15 -07:00
Spencer
32190e3ecb
[pageObjects/visualize] use testSubjects.setValue() to avoid partial input (#29903)
Fixes https://github.com/elastic/kibana/issues/29373
Fixes https://github.com/elastic/kibana/issues/29833

This flaky test is caused by the filter input box not being filled in completely. I was able to reproduce this once locally, but only after running the tests a couple times. To fix this I tried switching to the `testSubjects.setValue()` function, which focuses the input and clears its value before attempting to type into the field. This seems to have a higher success rate as I was able to run the test 40 times after making the change without a failure.
2019-02-01 22:38:24 -08:00
Jonathan Budzenski
61f999304b [kbn-es] Platform specific snapshots (#29673) 2019-02-01 20:59:59 -08:00
Spencer
b44d1ad54a
[chrome/nav] implement forcedNavigation logic in new nav (#29770)
## Summary

When the Kibana server is red we render the status page in place of the current page, kind of like an error page. This prevents us from having to worry about redirects, but also means that links which normally trigger navigation with hash changes are broken because the status page app is rendered instead of the current app. To fix this we enable "forced navigation" mode on the status page so that any nav bar link that is clicked, which resolves to the same protocol+host+path will trigger a page refresh.

This used to be implemented as a click handler on each nav item, but EUI doesn't support click handlers on links in the Nav, so this uses a single event listener at the container around the nav links which handles the click events which bubble up. This means the feature now also works for the recent links and the home link.

To test this you should start Kibana in oss mode as security prevents the display of the status page, since license info can't be retrieved.

 1. `node scripts/kibana --dev --oss` **without elasticsearch**
 1. open http://localhost:5601
 1. on the status page, try clicking the app links, the page should refresh and attempt to load the clicked url
 1. start es `yarn es snapshot --license oss`
 1. wait for Kibana to go green
 1. click an app link and the app should load correctly

Original implementation: 597062fcbd/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.js (L35-L61)
2019-02-01 17:59:20 -08:00
spalger
bf6126ad1d [ftr/maps] use newly renamed maps page object 2019-02-01 17:08:14 -08:00
Spencer
d0a3ebaf41
[kbn/es-query] build ts with babel7 (#29872)
* [kbn/es-query] build ts with babel7

* [kbn/es-query] keep esm for public module output
2019-02-01 16:16:05 -08:00
Lisa Cawley
b71b815658
[DOCS] Removes problematic float (#29875) 2019-02-01 15:27:09 -08:00
Nathan Reese
b1e1ab6385
[Maps] better error handling when layer configs can not be found (#29534)
* [Maps] better error handling when layer configs can not be found

* remove kibana.yml changes

* gis-map to map

* throw exception for getStringFields and getAttributions and then handle exceptions in caller
2019-02-01 15:50:51 -07:00
dave.snider@gmail.com
fafa9fa9ae
EUI 6.8.0 (#29860)
Upgrades Kibana's EUI dep.
2019-02-01 14:38:46 -08:00
spalger
58cc36e243 fix pre-commit only lint errors 2019-02-01 14:19:43 -08:00
Court Ewing
7a87f03ec7
Introduce content security policy (CSP) (#29545)
* csp: nonce and unsafe-eval for scripts

To kick things off, a rudimentary CSP implementation only allows
dynamically loading new JavaScript if it includes an associated nonce
that is generated on every load of the app.

A more sophisticated content security policy is necessary, particularly
one that bans eval for scripts, but one step at a time.

* img-src is not necessary if the goal is not to restrict

* configurable CSP owned by security team

* smoke test

* remove x-content-security-policy

* document csp.rules

* fix tsconfig for test

* switch integration test back to regular js

* stop looking for tsconfig in test

* grrr, linting errors not caught by precommit

* docs: people -> you for consistency sake

Co-Authored-By: epixa <court@epixa.com>
2019-02-01 17:11:38 -05:00