Commit graph

42 commits

Author SHA1 Message Date
Mikhail Shustov
88c0631344
Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091)
* bump @typescript-eslint deps

* update rules

* fix errors in pacakges

* fix src/

* fix x-pack

* fix test

* fix typings

* fix examples

* allow _ as prefix and suffix

* roll back prefix and suffix changes

* add eslint-plugin-eslint-comments

* report unused rules

* remove unused eslint comments from tests

* remove unused eslint comments 2nd pass

* remove unused eslint comments from src/

* remove unused comments in x-pack

* use no-script-url and no-unsanitized/property for ts files

* remove unused eslint comments

* eui/href-or-on-click removed when not complained

* no import/* rules for ts files

* cleanup

* remove the unused eslint-disable

* rollback unnecessary changes

* allow underscore prefix & sufix in type name

* update docs

* fix type error in enterprise search plugin mocks

* rename platform hack __coreProvider --> _coreProvider

* rollback space removal in src/core/public/legacy/legacy_service.test.ts

* fix naming convention in APM
2020-08-05 17:32:19 +02:00
Cauê Marcondes
fc04ef9152
Observabilty overview APM section doesn't fully collapse (#74224) 2020-08-04 12:46:49 +02:00
Nathan L Smith
2a77307af1
[APM] Use core.chrome to set window title (#73232)
I noticed there's a `core.chrome.docTitle.change` method. It can take a string or array of strings and provides its own separator character if given an array.

Replace our setting of `window.document.title` directly in the APM and Observability plugins with using the chrome method.

This changes the title to be, for example, "トランザクション - opbeans-node - サービス - APM - Elastic" instead of "トランザクション | opbeans-node | サービス | APM | Elastic", using " - " as a separator instead of " | ".
2020-07-27 09:22:37 -05:00
Nathan L Smith
d3ddcd2027
[APM] APM & Observability plugin lint improvements (#72702)
* [APM] APM & Observability plugin lint improvements

This is a large change, but most of it is automatic `eslint --fix` changes.

* Apply the same ESLint ovderrides in APM and Observability plugins.
* Remove the `no-unused-vars` rule. We can turn on the TypeScript check if needed.
* Check both JS and TS files.
* Add a rule for react function component definitions
* Upgrade eslint-plugin-react to include that rule
2020-07-27 08:18:36 -05:00
Cauê Marcondes
7cee2a6b15
[Observability] Remove app logos (#72259)
* removing app logos

* fixing TS error
2020-07-20 10:25:39 +02:00
Cauê Marcondes
f9baaa267d
Observability landing page title (#72088)
* updating window title based on breadcrumbs

* updating window title based on breadcrumbs

* updating window title based on breadcrumbs
2020-07-17 16:11:41 +02:00
Cauê Marcondes
19def177f4
replacing hard coded links for ela.st (#72240) 2020-07-17 13:15:15 +02:00
Cauê Marcondes
0cb2062831
[Observability] not showing empty state when apps return hasData false (#71844)
* show empty state when has data returns false

* adding return type

* addressing pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 16:48:12 +02:00
Cauê Marcondes
fbf54f0023
showing alerts created in the management page (#72031) 2020-07-16 15:03:50 +02:00
Cauê Marcondes
77d6c4e5fe
[Observability] Update empty state links (#72025)
* changing links

* changing title
2020-07-16 14:18:01 +02:00
Cauê Marcondes
7243e97883
[Observability] Landing page: Add promo panel for Ingest Manager (#71213)
* adding ingest manager panel

* adding ingest manager panel

* changing url

* removing git conflicts
2020-07-14 18:59:46 +02:00
Cauê Marcondes
386c7b501c
[Observability] landing page always being displayed (#71494)
* hides overview item when no other obs plugin is available.

* reverting tests changes

* reverting tests changes

* adding overview to observability tests
2020-07-14 16:32:28 +02:00
Cauê Marcondes
3374b2d3b0
[Observability] Change appLink passing the date range (#71259)
* changing apm appLink

* changing apm appLink

* removing title from api

* adding absolute and relative times

* addressing pr comments

* addressing pr comments

* addressing pr comments

* fixing TS issues

* addressing pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-14 11:05:48 +02:00
Brandon Morelli
005128c223
[APM] UI text updates (#71333) 2020-07-10 12:07:49 +02:00
Spencer
fa93a81ba6
[kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911)
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 18:43:17 -07:00
Cauê Marcondes
0f09f6b140
[Observability] illustration for landing page (#71217)
* changin illustration

* renaming files

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 20:41:36 +02:00
Cauê Marcondes
14752eafa7
[Observability] Fetch news feed (#71212)
* adding new feed

* adding log when an error happens

* fixing translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 19:13:07 +02:00
Cauê Marcondes
203fde92ac
Observability overview page (#69141)
* creating overview page and menu

* styling the home page

* adjusting breadcrumb

* renaming isnt working

* renaming isnt working

* renaming isnt working

* fixing import

* fixing scroll when resize window

* fixing eslint errors

* prepending links

* adding target option

* refactoring

* adding dark mode support

* fixing prettier format

* fixing i18n

* reverting some unnecessary changes

* addressing PR comments

* fixing functional tests

* ordering observability menu

* fixing tests

* addressing PR comments

* fixing scroll

* addressing pr comments

* addressing pr comments

* creating overview page

* mocking data

* mocking data

* refactoring

* crearting apm chart

* adding overview page

* adding metric charts

* adding charts

* changing mock data location

* adding mock registry

* adding date picker

* adding route validation

* adding io-ts

* adding io-ts

* adding io-ts support

* fixing imports and mock data

* adding app folder

* creating a section for each plugin

* adding stats

* adding domain min max

* refactoring xcoordinaters

* fixing route

* adding bucket size

* adding group property on logs

* adding home page

* dont break page if location  state is undefined

* each component fetches its own data

* Refactoring

* adding loading indicator to chart

* fixing uptime chart

* adding brush functionality to charts

* fixing refresh button and auto refresh function

* adding horizontal line to accordion section

* adding emptySection to dashboard page

* adding add data button

* adding resources section

* removing margins from horizontal rule

* changing min interval to 60s

* fixing empty section

* removing unnecessary code

* adding unit tests

* fixing imports

* adding initial story book for observability

* removeing uptime mock data

* fixing xDomain to show correct data on x-axis

* fixing empty state alignment

* adding story book and other improvements

* adding news component

* adding support to custom colors on EuiProgress and EuiStats

* removing infra mock data

* adding error message when api throwns an error

* adding alert section

* Adding alerts

* adding alert api call

* addressing PR comments

* adding storybook

* adding feedback button

* addressing PR comments

* chamging plugins return data

* fixing kibana app navigation

* fixing unit test

* fixing ts issues

* addressing PR comments

* using lodash truncate

* adding comment

* updating public documentation

* fixing alerts request

* fixing unit test

* fixing unit test

* aligin beta badge to the center

* adding moment duration to get the units as seconds

* addressing PR comments

* addressing PR comments
2020-07-08 21:52:16 +02:00
Chris Cowan
a3e9f39aff
[Metrics UI] Register function for Observability homepage (#70529)
* [Metrics UI] Register function for Observability homepage

* Updating types; removing relative path from appLink

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 13:01:18 -07:00
Nathan L Smith
585b3f7e3d
Add Jest configuration and README to observability plugin (#70340)
Also clean up the coverage configuration in the APM jest config.
2020-06-30 14:03:05 -05:00
Jason Rhodes
bb7bc782b2
[Logs and Metrics UI] Initial setup for registering observability overview data fetchers (#69999)
* Switches mount callbacks to only use start deps

Fixes #58014

* Sets up skeleton logs data fetchers for overview

* Fixes type hacks for logs fetcher

* Prevent kibana from crashing on initial load

* Fixes types and linting errors

* Fixes some linting import/export issues

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
2020-06-30 13:56:35 -04:00
Pierre Gayvallet
fe1c508d8d
Move and rename legacy elasticsearch client (#69797)
* move last snapshot to inline

* move legacy files to legacy subfolder

* move request types out of legacy

* export Headers from http instead of elasticsearch

* renaming - first pass

* renaming - second pass

* fix core mocks

* adapt new calls

* update generated doc

* fix IT test mocks

* fix new usages
2020-06-29 17:43:31 +02:00
Cauê Marcondes
41ecf39539
[APM]Create API to return data to be used on the Overview page (#69137)
* Adding apm data fetcher

* removing error rate

* chaging observability dashboard routes

* APM observability fetch data

* fixing imports

* adding unit test

* addressing PR comments

* adding processor event in the query, and refactoring theme

* fixing ts issues

* fixing unit tests
2020-06-26 11:11:42 +02:00
Cauê Marcondes
9d9df2b6c1
[Observability] Fixing dynamic return type based on the appName (#69894)
* fixing generic return type

* addressing pr comments
2020-06-25 17:19:38 +02:00
Cauê Marcondes
82df228c95
adding Stats interface with type (#69784) 2020-06-24 14:20:32 +02:00
Brandon Morelli
e2ab94060a
[Obs] Update Observability landing page text (#69727) 2020-06-23 17:22:32 -07:00
Cauê Marcondes
572d006d9f
[Observability]Adding specific Return APIs for each plugin (#69257)
* Adding specific apis for each plugin

* adding metric hosts stat

* addressing PR comment

* addressing PR comments

* changing series to key/value

* exporting interfaces

* adding label to stat

* refactoring types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-23 15:08:17 +02:00
Cauê Marcondes
b42defa37e
[Observability] Update landing page copy and content (#69247)
* removing try it section

* removing try it section
2020-06-16 17:17:17 +02:00
Cauê Marcondes
437f9f6041
[Observability] Create context container to enable Observability plugin registry function (#68642)
* creating observability context registry

* adding registryContext

* addressing PR comments

* addressing PR comments

* adding context to registry provider

* adding obs own registry

* refactoring

* refactoring

* fixing types

* removing apm code

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 08:46:36 +02:00
Cauê Marcondes
00cff3cd7e
Adding key to avoid react warning (#68491) 2020-06-08 13:03:05 +02:00
Cauê Marcondes
07e3c9cb41
[Observability] Landing page for Observability (#67467)
* creating overview page and menu

* styling the home page

* adjusting breadcrumb

* renaming isnt working

* renaming isnt working

* renaming isnt working

* fixing import

* fixing scroll when resize window

* fixing eslint errors

* prepending links

* adding target option

* refactoring

* adding dark mode support

* fixing prettier format

* fixing i18n

* reverting some unnecessary changes

* addressing PR comments

* fixing functional tests

* ordering observability menu

* fixing tests

* addressing PR comments

* fixing test

* fixing scroll

* addressing pr comments

* addressing pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-08 09:07:35 +02:00
Mikhail Shustov
4040c3090b
Mark elasticsearch client exposed via request context as deprecated (#67319)
* add legacy prefix for es client exposed via request handler context

* update src/plugins

* update core mocks and tests

* update test plugins

* update xpack plugins

* include x-pack/mocks.ts

* update after master merge

* update docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-27 19:00:16 +02:00
Mikhail Shustov
cec99f9c49
Observability & APM do not use elasticsearch client provided via setup contract (#67263)
* dump prettier version to v2

* use elasticserch client provided via context

* use es client provided from start contract
2020-05-26 14:52:05 +02:00
restrry
bf04235dae apply prettier styles 2020-05-22 09:08:58 +02:00
Dario Gieselaar
9e6ebc50a0
[APM] Add license guard for annotations (#65995) 2020-05-14 16:23:38 +02:00
Dario Gieselaar
399eed77bb
[APM] Annotations API (#64796) 2020-05-05 19:49:39 +02:00
Josh Dover
37c92ca476
Fix plugin enabled config options (#60998) 2020-03-25 15:09:04 -06:00
Kerry Gallagher
0a6c748cc8
[Logs / Metrics] New Platform migration (full cutover) (#54583)
* Fully migrates metrics and logs to the NP

Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
Co-authored-by: John Schulz <github.com@jfsiii.org>
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2020-02-18 19:22:27 +00:00
Cauê Marcondes
f49581ce34
[APM] Divide "Actions menu" into sections to improve readability (#56623)
* transaction actions menu

* transaction actions menu

* fixing pr comments

* fixing pr comments

* fixing pr comments

* fixing pr comments

* fixing unit test

* fixing unit test

* using moment to calculate the timestamp

* renaming labels

* Changing section subtitle

* fixing unit tests

* replacing div for react fragment

* refactoring

* removing marginbottom property

* div is needed to remove the margin from the correct element
2020-02-17 12:05:46 +00:00
Phillip Burch
1ec7ee79b6
Create a new menu for observability links (#54847)
* Create a new menu for observability links. Use it on inentory page.

* Change the order of props for clarity

* Fix default message

* Composition over configuration

* Show ids and ips. PR feedback.

* Don't wrap subtitle. Use fields in inventory model for name

* Tooltip was becoming hacky. Keep it simple and wrap the id.

* Create observability plugin. Add action menu to it.

* Fix path

* Satisfy linter and fix test

* Please the linter

* Update translastions

* Update test for disabled links

* Update more tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-27 19:10:34 -06:00
Court Ewing
7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
Jason Rhodes
b20a8e2ff4
Shared observability code baseline (#36912)
* Simple baseline for using an x-pack faux plugin to share code

* Fixed directory structure and clarified README

* Clarifies README after feedback
2019-06-17 19:10:02 -04:00