Commit graph

1402 commits

Author SHA1 Message Date
Ryan Keairns
de92f9b1b7
Monitoring design touchup (#29479)
* 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-01-31 14:32:04 -06:00
Pete Harverson
0c86822e40
[ML] Automatically migrate saved objects created by data recognizer (#29736)
* [ML] Automatically migrate saved objects created by data recognizer

* [ML] Remove TODO from saved object import step
2019-01-31 19:54:22 +00:00
James Gowdy
f46a8d64ca
[ML] Displaying recognizer saved objects errors (#29734) 2019-01-31 17:14:18 +00:00
Chris Cowan
fada5d9e15
[Infra UI] Table View for Home Page (#29192)
* Addding initial table implimentation

* Moving waffle map to seperate component; adding contextual menu to nodes; adding filter to groups; adding pagination; adding sorting

* Fixing EUI types for EuiInMemoryTable to work for EVERYONE

* Adding server plugin for tslint for VIM; Fixing tests

* Adding the view switcher

* removing dependency

* updating yarn.lock

* Change padding to use EUI rules

* Rename waffle/index to nodes_overview; move table to nodes_overview

* Adding missed files in last commit

* Adding textOnly to the columns that need special truncation because they are buttons

* Fixed an error in the merge

* Fixing merge issues
2019-01-31 09:53:09 -07:00
Søren Louv-Jansen
528e533528
[APM] Fix Legend positioning and margins (#29707) 2019-01-31 17:28:12 +01:00
Ryan Keairns
bbc68b0000
[7.0] Adds new K7 side navigation (#28940)
* initial commit of K7 side nav

* [ui/persistedLog/recentlyAccessed] support observing history items

* [globalNav] use real recentlyAccessed and navLink data

* fixes header logo and mobile layout

* handle hidden links and no recents, use size vars

* handle hidden links and no recents, use size vars

* adds prop to wrap flyout link text

* fix menu scroll for IE

* [chrome/headerGlobalNav] fix typescript issues

* [chrome/headerGlobalNav] only ignore types that are actually missing

* update EUI to 6.6.0

* Revert "update EUI to 6.6.0"

This reverts commit 048cbf9157f8fc7410d4cf8e017b210c4548104e.

* [chrome] remove HeaderAppMenu component

* [ftr/services/appsMemnu] update for new style

* [ftr/discover] tweak size of discover tests and size-dependent assertions

* [chrome] disable offsets in embed mode

* [ftr/discover] try sticking with original screen width

* [ftr/discover] try to force screensize before checking axis labels

* [ftr/services/appMenu] ensure menu closed after clicking app

* uptime app icon, mobile header size removed

* [ftr/discover] make assertion resilient to minor changes in vis width

* [chrome] add types for nav apis

* [chrome/recentlyAccessed] display app icons when possible

* [ftr/discover] make a little wider so scroll doesn't interfer with vis width

* [ftr/services/globalNav] fix test subject
2019-01-31 10:13:40 -06:00
Thomas Neirynck
98a77ab9db
[Maps] Do not wait for meta call to complete for bootstrapping the app (#29514) 2019-01-31 10:43:09 -05:00
Aaron Caldwell
cbefe90d50
[Maps] If tilemap source already exists, just sync style (#29620)
* If source already exists, just sync tilemap style

* Review feedback
2019-01-31 08:40:29 -07:00
Chris Cowan
7e9315a528
[Log UI] Flyout for Log Events (#28885)
* Adding flyout to log viewer

* Adding filtering

* Fixing typescript errors

* Adding a test for graphql; fixing test data for 7.0.0

* Adding terminate_after:1 to logItem request

* fixing test data

* Switching back to old data

* Fixing data for tests

* Adding i18n translations

* changing label from add to set

* Make flyout call more robust; fixing typings

* Adding loading screen to flyout

* Fixing linting errors

* Update x-pack/plugins/infra/public/components/logging/log_flyout.tsx

Co-Authored-By: simianhacker <chris@chriscowan.us>

* Fixing visible mis-spelling

* Fixing types

* Change withLogFlyout to be conditional; Add icon instead of onClick for flyout

* Adding dark mode support

* Adding user-select:none to icon div

* Removing remnants of a failed experiment

* Adding aria-label to view details button

* Fixing padding on date element

* Removing unused variable that somehow got past the linters

* Fixing empty_kibana

* Fixing data for infra

* Fixing merge weirdness
2019-01-31 08:34:09 -07:00
Bill McConaghy
779c9e1fd3
Update xpack console specs (#29506)
* updating xpack console specs for _xpack namespace deprecation

* fixing stray xpack

* adding additional spec

* fixing issues with stray _xpack
2019-01-31 08:28:37 -05:00
James Gowdy
a6291afd7d
[ML] Fixing data recognizer panel refresh on new job page (#29701) 2019-01-31 13:11:27 +00:00
Sophie Chang
413d37d5ed [ML] Update http access modules for ECS (#29383)
* [ML] Initial commit for apache ecs module

* [ML] Update apache2 module for ECS

Rename following fields
event.module:apache
event.dataset:access
source.address
url.original
http.response.status_code
source.geo.location

Rationalise to only use one set of kibana saved objects for all http web access logs
Rename files from apache
Combined URL explorer into Count explorer dashboard as there was a lot of duplication
Add filter to custom url
Rename custom urls to Investigate Source IP and Status Code
Add chart to show overall event rate split by event.module - can tell if multiple datasets are included
Increase limit for top source ips from 5 to 50
Add created_by to custom setting for telemetry
Rename jobs and saved objects to include ecs tag

Tested side by side against v6 jobs

* [ML] Rename apache files from hyphen to underscores

* [ML] Further apache renames

Also change custom URLs to lower case to match "View series"
Change created_by to ml-module-apache-access

* [ML] Initial commit of nginx ml module

* [ML] Rename dashboard to generic explorer

* [ML] Further refinement for apache

Rename http_status_code to status_code_rate
Update custom url to use filters instead of lucene query bar

* [ML] Convert apache module to nginx

Copy files, keeping nginx logo
Multiple renames to nginx

* [ML] Make chart legend visible by default
2019-01-31 11:39:18 +00:00
Pete Harverson
0467735ce8
[ML] Add anomaly marker to charts when gap exists in data (#29628)
* [ML] Add anomaly marker to charts when gap exists in data

* [ML] Amend check for anomaly markers on gaps and update Jest tests
2019-01-31 11:30:03 +00:00
Oliver Gupte
db147984f8
[APM] fixes infinite recursion for multiple waterfall item references (#29659) (#29683)
* [APM] fixes #29564 by bailing out of recursion when a multiple references of the same object are detected

* [APM] minimized test fixure to isolate logic being tested

* [APM] improve readabilty by using better var name
2019-01-31 01:16:32 -08:00
Bill McConaghy
06bbf1da65
making badges clickable to filter in index management (#29635)
* making badges clickable to filter in index management

* improving a11y for clickable badge
2019-01-30 21:02:07 -05:00
Nathan Reese
c1d6a1bd76
[Maps] use EuiSuperDatePicker in QueryBar instead of Angular timepicker in Top Nav (#29235)
* Embed timepicker in query bar (#29130)

* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* embed timepicker in query bar

* flesh out date picker in query bar for maps app

* wire up refresh config

* fix bug with way update function called by watcher

* get maps application functional tests working with new timepicker

* remove some changes outside of scoped work

* clean up typescript lint problems

* fix query_bar I18n lint error

* update query_bar jest test

* grab some parts missing from one cherry-pick

* pass dateRange to updateQueryAndDispatch when app state changes

* use timefilter disable methods to hide timepicker from top naav

* get selected refresh unit

* use EuiSuperUpdate button

* Fix responsive sizing of datepicker (#29)

* set isDisabled on EuiSuperUpdateButton

* review feedback

* remove ts-ignore comment from defaultProps, fix query_bar snapshot

* make new props optional

* fighting with ts linter

* do not include dateRangeFrom and dateRangeTo in isDirty when shoDateRange is not true

* pull initial query from UI settings
2019-01-30 17:02:42 -07:00
Matt Bargar
45b24afe83
Revert "Migrate filter bar to React, EUI, and Typescript (#25563)" (#29662)
This reverts commit 410c094547.
2019-01-30 17:00:42 -05:00
Mike Côté
1b0f595f01
Add new "references" attribute to saved objects for relationships (#28199)
* Add new references attribute to saved objects

* Add dual support for dashboard export API

* Use new relationships API supporting legacy relationships extraction

* Code cleanup

* Fix style and CI error

* Add missing spaces test for findRelationships

* Convert collect_references_deep to typescript

* Add missing trailing commas

* Fix broken test by making saved object API consistently return references

* Fix broken api integration tests

* Add comment about the two TS types for saved object

* Only return title from the attributes returned in findRelationships

* Fix broken test

* Add missing security tests

* Drop filterTypes support

* Implement references to search, dashboard, visualization, graph

* Add index pattern migration to dashboards

* Add references mapping to dashboard mppings.json

* Remove findRelationships from repository and into it's own function / file

* Apply PR feedback pt1

* Fix some failing tests

* Remove error throwing in migrations

* Add references to edit saved object screen

* Pass types to findRelationships

* [ftr] restore snapshots from master, rely on migrations to add references

* [security] remove `find_relationships` action

* remove data set modifications

* [security/savedObjectsClient] remove _getAuthorizedTypes method

* fix security & spaces tests to consider references and migrationVersion

* Add space id prefixes to es_archiver/saved_objects/spaces/data.json

* Rename referenced attributes to have a suffix of RefName

* Fix length check in scenario references doesn't exist

* Add test for inject references to not be called when references array is empty or missing

* some code cleanup

* Make migrations run on machine learning data files, fix rollup filterPath for savedSearchRefName

* fix broken test

* Fix collector.js to include references in elasticsearch response

* code cleanup pt2

* add some more tests

* fix broken tests

* updated documentation on referencedBy option for saved object client find function

* Move visualization migrations into kibana plugin

* Update docs with better description on references

* Apply PR feedback

* Fix merge

* fix tests I broke adressing PR feedback

* PR feedback pt2
2019-01-30 15:53:03 -05:00
Matt Bargar
410c094547
Migrate filter bar to React, EUI, and Typescript (#25563)
Rewrites the filter bar in React, EUI, and Typescript. Updates the look and feel of the filter bar and makes it consistent with the rest of K7.
2019-01-30 15:48:31 -05:00
Chris Roberson
c443fee919
[Monitoring] Refactor index patterns from configurable to constants (#29528)
* Move away from index patterns as configs and move them into constants

* Refactor more usages of the index patterns

* Remove debug

* Update comment

* Fix mocha tests

* PR feedback
2019-01-30 15:21:06 -05:00
Catherine Liu
cc0e2d0d7d
Removed file_upload component (#29007)
Moved filepicker style to main.scss. Removed workpad_upload component

    Added filepicker to asset manager

    Removed check for assets in workpad header to always show asset manager button

    Deduped image uploads in asset manager. Added loading indicator to asset manager

    Added empty prompt to display when there are no assets

    Adds additional image upload type checking

    Updated verbiage

    Undid CSS changes to  workpad_loader filepicker
2019-01-30 13:05:06 -07:00
Chris Roberson
6eeccb89b6
Update title to stack monitoring (#29638) 2019-01-30 14:40:04 -05:00
Robert Monfera
74babb2f76
Fix: keep element selection after layer move up/down (#29634) 2019-01-30 20:26:04 +01:00
Chris Roberson
15f95e8b8e
Fix issue where the date format isn't passed in properly (#29637) 2019-01-30 14:25:32 -05:00
Chris Cowan
c66363a376
[Infra UI] Custom Field Grouping for Waffle Map (#28949)
* [Infra UI] Add Support for Grouping By Custom Field

* fixiing typescript errors

* Serializing custom options to url so they persist accross reloads

* Fixing more errors

* removing label; moving custom field to top of menu

* fixing typescript error

* Adding intl formatMessage to strings
2019-01-30 11:39:32 -07:00
Nathan Reese
6e6be37f2b
update to eui 6.7.4 (#29560)
* update to eui 6.7.4

* remove use of euiHeaderChildSizeMobile for xs header check
2019-01-30 10:20:56 -07:00
Søren Louv-Jansen
f9e2cd3c30
[APM] Preserve query bar values in links (#29430) 2019-01-30 18:07:56 +01:00
Tim Sullivan
b379751a0c
Telemetry for Visualizations by type (#28793)
* task runner and usage collector for visualizations by type

* type is always just "visualization"

* drop the I- prefix for interfaces

* bug fixes

* ts fix

* comment perfection

* just usage.

* const for task numworkers

* use mapValues

* get next midnight module

* move to oss_telemtry

* test fix

* errMessage.includes(NotInitialized)
2019-01-30 09:40:37 -07:00
Mike Côté
9eef63f783
Allow passing a default operator to use on saved object client find operations (#29339)
* Allow passing a default operator to use on find operations

* Default operator to OR like elasticsearch to avoid passing null

* Add dashboard search tests

* Make search_operator optional

* Fix query_params.test.js

* Include searchOperator in saved_object_finder

* Apply PR feedback

* Rename searchOperator to defaultSearchOperator
2019-01-30 11:33:44 -05:00
Melissa Alvarez
9ca8c9fe67
[ML] Ensure Anomaly Explorer 'Overall' swimlane correctly reflects 'View by' swimlane time range selection (#29469)
* update swimlane classes - do not use angular reference

* Update tests
2019-01-30 10:35:53 -05:00
Aleh Zasypkin
86a17bfeea
Remove previously deprecated elasticsearch.* and xpack.monitoring.elasticsearch.* settings. (#29496) 2019-01-30 16:21:06 +01:00
Oliver Gupte
58f4295b22
[APM] Link to related errors from Transaction detail page (#29313)
* Closes #21920 by:
 - linking to errors list filtered by current transaction id
 - including the error count in the transaction details link

* [APM] improved code org and fix warning message in unit test

* [APM] improved code readability and parallelized ES queries
2019-01-30 07:14:05 -08:00
Kerry Gallagher
4d6bfd6b26
[InfraUI] Add Discuss feedback links to Infrastructure and Logs (#29519)
* Add header_feedback_link component

* Replace beta -> feedback link in Waffle Map

* Replace beta badge -> feedback link in logs
2019-01-30 14:18:05 +00:00
Chris Davies
2510ccb0ae
Upgrade Kibana to Elasticsearch 7.0 (#29184) 2019-01-30 09:08:58 -05:00
Chris Roberson
eec327b1fe
[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
2019-01-30 09:04:18 -05:00
Bill McConaghy
4356a2dae3
copy edit for set_priority action in ilm UI (#29540) 2019-01-30 08:40:36 -05:00
Matt Apperson
8b89248764
[BeatsCM] Allow CM to scale better (#27717)
* 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

* fix memory adapter for configs

* add missing index template field.

* fix issue of empty array in ES

* fix typings

* fix tag not showing up when assigning sometimes

* cleanup

* fix assignment options not always listing avaliable tags. Tag removal now works. Now warns when tag is assigned to beat. Removing a tag removes config blocks on that tag

* fix search bars

* add “other field”

* remove dumb conditional

* use previous ID on configs when updating configs

* deleting tags with config blocks works

* reload beats list after removing a beat

* fix param order for DB adapter

* fix types

* persist config in UI when creating new config blocks on new tags

* Fixed issue with YAML parsing, error editing an output config, and cleaned up a little

* added/enhanced test
2019-01-30 07:19:01 -05:00
Walter Rafelsberger
a79560e10a
[ML] Fixes dragSelect regression. (#29577)
Some SCSS still used ml-explorer-swimlane (note the selector without the dot) for rules which referenced the angularjs tag <ml-explorer-swimlane /> which wrapped the swimlane. This element no longer exists in the DOM after the migration to React. Because the selector didn't match anymore, cells in the swimlanes would get a gray border when drag-selecting even if the feature to select a range of cells was turned off.

This fixes it by updating the SCSS to match the corresponding elements again. The referenced classes have been renamed to camelCase + ml-prefix and moved out of the deeply nested code. But no further SCSS refactoring is done in this PR, this is just about fixing this regression. Some legacy CSS from the ml-explorer-swimlane rule has been removed too.
2019-01-30 11:46:33 +01:00
Walter Rafelsberger
8c5ac4abbc
[ML] Fixes caching/memoizing Anomaly Explorer data calls related to changed time ranges. (#29579)
Fixes caching/memoizing Anomaly Explorer data calls related to changed time ranges.
2019-01-30 11:42:47 +01:00
Oliver Gupte
ddfe69fcd9
[APM] fixes selecting edges of charts (#29492)
* [APM] fixes #26529 by making the mouseup event handler global

* [APM] fix tests for CustomPlot
2019-01-29 16:59:04 -08:00
Josh Dover
908db0de07
[7.0] Add reindex feature to Upgrade Assistant (#27457) (#29516) 2019-01-29 17:55:35 -06:00
CJ Cenizal
89733ae0af
Fix bug in xpackInfo in which keys were being camel-cased during refresh but not init (#29304)
* Update Beats Management to use camelCased plugin ID to access xpackInfo.
2019-01-29 15:48:53 -08:00
Matthew Kime
400801d4b4
Kibana Management - Indices url to index patterns - followup (#29481)
* grep and change

* final grep of codebase to convert /management/kibana/indices => /management/kibana/index_patterns

* Update index.js
2019-01-29 16:02:41 -06:00
Robert Monfera
6b61ab7abb
[Canvas] unify pointer event x/y origin logic for localMousePosition calculation (#28748) 2019-01-29 22:06:57 +01:00
Jonathan Budzenski
e9f0006890
Remove es _xpack endpoint usage (#29465)
* _xpack/rollup -> _rollup

* _xpack/sql -> _sql

* _xpack/license -> _license

* _xpack/migration -> _migration

* _xpack/watcher -> _watcher

* _xpack/monitoring -> _monitoring

* _xpack/security -> _security

* [console_extensions] regenerate

* [console_extensions] update ml overrides

* [console_extensions] update security overrides

* [console_extensions] update rollup overrides

* Revert "[console_extensions] update rollup overrides"

This reverts commit bb3742570d.

* Revert "[console_extensions] update security overrides"

This reverts commit 5c0263b35e.

* Revert "[console_extensions] update ml overrides"

This reverts commit e8254d5671.

* Revert "[console_extensions] regenerate"

This reverts commit 91b754e956.
2019-01-29 13:28:32 -06:00
Justin Kambic
dc70eab105
Delete monitor stacked RTT chart. (#29446) 2019-01-29 14:28:04 -05:00
Justin Kambic
5bec56ed01
[Uptime] Refactor es queries and associated components/endpoints (#29374)
* Refactor es queries and associated components/endpoints.

* Add unit tests, repair broken tests.

* Simplify code based on PR feedback.

* Add loading spinner to monitor page title based on PR feedback.

* Rename GQL type based on PR feedback.

* Remove use of 'undefined' in ES query based on PR feedback.

* Simplify code based on PR feedback.

* Add definite size/shard_size for terms agg based on PR feedback.

* Simplify ES query based on PR feedback.

* Update x-pack/plugins/uptime/server/lib/adapters/monitors/elasticsearch_monitors_adapter.ts

Implement PR feedback.

Co-Authored-By: justinkambic <justin.kambic@elastic.co>

* Increase size for ES errors query based on PR feedback.

* Fix hardcoded field in terms filter based on PR feedback.

* Simplify get code for monitors function.

* Reduce unnecessarily large size for terms agg based on PR feedback.

* Pluralize filter bar props.

* Refactor filter bar query based on PR feedback.

* Update test.
2019-01-29 12:52:19 -05:00
Chris Cowan
c9eee0c222
Adding support for Dark Mode (#29133)
* Adding support for Dark Mode

* Use transparentize for suggestion icon bg color
2019-01-29 08:57:02 -07:00
Nox911
905ea526b2
[i18n] Translate kuery_autocomplete (#29162)
* Translate kuery_autocomplete

* Resolve review comments
2019-01-29 18:41:14 +03:00
Pete Harverson
f5638bdce3
[ML] Set zoom to start of forecast on opening in Single Metric Viewer (#29503) 2019-01-29 15:10:52 +00:00