Commit graph

33 commits

Author SHA1 Message Date
Yngrid Coello
153e1fcf45
[APM] plugin description (#155041)
While I was checking [some
documentation](https://www.elastic.co/guide/en/kibana/current/plugin-list.html)
I discovered APM plugin description was `undefined`

<img width="1847" alt="image"
src="https://user-images.githubusercontent.com/1313018/231450602-926abacc-b915-42dd-88fb-462643cc8dc1.png">
2023-04-19 09:49:10 +01:00
Spencer
9003353729
rename @elastic/* packages to @kbn/* (#138957)
* rename @elastic/* packages to @kbn/*

* update yarn.lock

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* update lint task

* review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 08:54:42 -07:00
Søren Louv-Jansen
d13ee69bda
[APM] Document _inspect flag (#117635) 2021-11-08 12:52:20 +01:00
Søren Louv-Jansen
169df02635
[APM] Improve readability of APM readme (#114633) 2021-10-12 20:34:13 -04:00
Søren Louv-Jansen
10fd800c2a
[APM] Add "Queries and data model" section to APM readme (#114025) 2021-10-06 12:59:43 -05:00
Søren Louv-Jansen
9dff4d0827
[APM] Add link to officials docs for APM UI settings (#113396) 2021-09-30 00:54:41 +02:00
Søren Louv-Jansen
61e533f253
[APM] Clean up readme (#110973)
* [APM] Clean up readme

* Update linting.md

* Update testing.md

* Update testing.md

* Update testing.md

* Update plugin-list.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-05 07:14:06 +02:00
Cauê Marcondes
2fe56f9793
[APM] tests restructure (#110703)
* refactoring test

* improving test structure

* improvements

* improving readmes

* readme

* test

* fixing ts issue

* addressing pr comments

* fixing readme files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 16:42:33 -04:00
Søren Louv-Jansen
8deaa573de
[APM] Change username in readme (#109604) 2021-08-23 09:00:47 -04:00
Søren Louv-Jansen
a93a7efa80
[APM] Refactor Cypress e2e tests (#109024)
* Improve script to setup users and roles

* fix readme

* CI fixes

* add index permissions to roles

* disable welcome screen

* Run es archive once before tests

* Fix ts issues

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-08-19 16:46:25 +02:00
Cauê Marcondes
40842e1d65
[APM] Removing loading spinner while fetching comparison data from tables (#108256)
* removing loading from tables

* renaiming readme file

* changing apm readme file

* addressing PR comments
2021-08-12 12:16:09 -04:00
Søren Louv-Jansen
71adda0366
[APM] Update ESLint and tsc commands in APM readme (#101207)
* [APM] Change typescript command in readme

* Update eslint command
2021-06-04 05:27:11 -04:00
Søren Louv-Jansen
84adfe551b
[APM] Add elasticsearch queries to api response (#95146) 2021-03-29 07:50:27 +02:00
Søren Louv-Jansen
bd3f5d4863
Update APM readme (#95383)
* Update APM readme

* Update readme.md

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-03-25 21:19:48 +01:00
Søren Louv-Jansen
e90e5bae8c
[APM] Fix readme for running tsc (#95074) 2021-03-22 23:19:58 +01:00
Nathan L Smith
f9804057c8
TypeScript project references for APM (#90049)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 22:46:05 +01:00
Søren Louv-Jansen
68b5625e5a
[APM] Correlations UI POC (#82256) 2020-11-20 08:50:34 +01:00
Nathan L Smith
333f8732de
APM Experiments settings (#81554)
* Add advanced settings for APM

* Register advanced settings in server startup that show in the Kibana advanced settings UI. (Fixes #81396.)
* Format settings pages to be more consistent.
2020-10-28 10:38:23 -05:00
Nathan L Smith
0286c7f702
Replace uses of useUrlParams for path params (#76459)
Part of #51963.
2020-09-08 09:15:28 -05:00
Nathan L Smith
735d3bae8c
[APM] Improvements to data telemetry (#70524)
Make some changes to how we deal with data telemetry in APM and reduce the number of fields we're storing in Saved Objects in the .kibana index.

Add a telemetry doc in dev_docs explaining how telemetry is collected and how to make updates. (In this PR the docs only cover data telemetry, but there's a space for the behavioral telemetry docs.)

Stop storing the mapping for the data telemetry in the Saved Object but instead use `{ dynamic: false }`.

This reduces the number of fields used by APM in the .kibana index (as requested in #43673.)

Before:

```bash
> curl -s -X GET "admin:changeme@localhost:9200/.kibana/_field_caps?fields=*&pretty=true" |  jq '.fields|length'
653
```

After:

```bash
> curl -s -X GET "admin:changeme@localhost:9200/.kibana/_field_caps?fields=*&pretty=true" |  jq '.fields|length'
415
```

We don't need the mapping anymore for storing the saved object, but we still do need to update the telemetry repository when the mapping changes, and the `upload-telemetry-data` script uses that mapping when generating data.

For these purposes the mapping in now defined in TypeScript in a function in common/apm_telemetry.ts.

It's broken down into some variables that and put together as the same mapping object that was there before, but having it in this form should make it easier to update.

A new script, `merge-telemetry-mapping`, takes the telemetry repository's xpack-phone-home.json mapping, merges in the result of our mapping and replaces the file. The result can be committed to the telemetry repo, making it easier to make changes to the mapping.

References #61583
Fixes #67032
2020-07-07 11:19:59 -05:00
Søren Louv-Jansen
d12a80e232
[APM] Update docs on running API tests (#70765)
* [APM] Update docs on running API tests

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2020-07-06 15:06:29 +02:00
Dario Gieselaar
dbdc3cd01a
[APM] Run API tests as restricted user (#70050) 2020-06-29 16:17:32 +02:00
Aleh Zasypkin
c6e2fed1c6
Register privileges in Kibana Platform Security plugin and remove legacy getUser API. (#65472) 2020-06-05 08:11:58 +02:00
Nathan L Smith
78d5026fbd
APM-specific Jest configuration (#67858)
Update the x-pack `createJestConfig` function to take the `rootDir` as an argument, which allows for easier overriding of the Jest configuration for a specific directory.

Previously we would run Jest in development from the x-pack directory by running something like:

```
node scripts/jest.js --testPathPattern=plugins/apm --watch
```

Currently (for me anyway) this is failing with:

```
Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28)
```

and it would sometimes not correctly test only the changed files when a change in APM was made. It was also difficult to configure correctly with the [VSCode Jest extension](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest).

Add a jest.config.js for APM. This makes running with `--watch` better about which files it chooses to re-run and makes the VSCode extension work (including coverage mapping) with minimal configuration.
2020-06-01 20:38:53 -05:00
Oliver Gupte
16ba937bae
[APM] Client new platform migration (#64046)
* migrate files from legacy path to new plugin path

* update file paths to reflect migrated files

* move minimal legacy client files back to legacy path in order to run kibana

* Completes the full cutover to the new kibana platform removing all shims and legacy adapters.

* Adds APM to ignored list for casing check.

* - moves public/utils/pickKeys.ts to common/utils/pick_keys.ts
- exposes getTraceUrl as a plugin static export of apm/public and updates import in infra
- fixes FeaturesPluginSetup import in apm/public app
- renames get_apm_index_pattern_titles -> get_apm_index_pattern_title
- getApmIndexPatternTitle is now a synchronous getter function
- removes unused comments and xpack.apm.apmForESDescription i18n translations

* Moves automatic index pattern saved object creation from
plugin start to when the Home screen first renders

* removed unnecessary legacy css imports

* fixed ci issues by:
- moving readOnly badge, and help extension setup to occure only
  when apm app is mounted
- registering saved object types
- also moved createStaticIndexPattern from a react useEffect on the
  APM home screen to when the app is mounted
2020-04-30 13:08:50 -07:00
Court Ewing
7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
Tiago Costa
ed795d28ee
Migrate from tslint (#33826)
* chore(NA): remove tslint dependencies, configs and enable eslint typescript parser.

* fix(NA): apply recommend eslint typescript rule.s

* chore(NA): upgrade eslint package versions.

* chore(NA): split javascript eslint config in an override section.

* chore(NA): split all eslint configs with overrides.

* chore(NA): remove missing console.log.

* chore(NA): change eslint splits and overrides order.

* chore(NA): replace tslint disable comments with eslint ones.

* chore(NA): solve eslint typescript errors for elastic/kibana-custom/no-default-export

* chore(NA): fixed multiple eslint typescript rule failures.

* chore(NA): add tarfet folder to the eslint ignore.

* chore(NA): apply prettier rule to ts type file.

* chore(NA): remove last mentions to tslint

* chore(NA): add old defined rules

* chore(NA): missing port rules website

* chore(na): ordered rules

* chore(NA): solved eslint typescript problems.

* chore(NA): fix spaced comment problems.

* chore(NA): fix some more eslint typescript rules: import/order no-empty-interface

* chore(NA): fix last rules and comment out what are the ones still failing.

* chore(NA): comment out camelcase rule.

* chore(NA): regenerate kbn pm dist.

* chore(NA): updated snapshots.

* chore(NA): updated snapshots.

* chore(NA): disabled sort-keys rule.

* chore(NA): remove rule prefer-arrow/prefer-arrow-functions.

* chore(NA): fix for @typescript-eslint/no-var-requires rule.

* chore(NA): fixes for @typescript-eslint/camelcase rule.

* chore(NA): fix typo on eslint config kibana typescript.

Co-Authored-By: mistic <tiagoffcc@hotmail.com>

* chore(NA): remove legacy note after the intellij upgrade to 2019.1

* fix(NA): import order plugin.

* chore(NA): fix ts ignore positions after auto fix.

* fix(NA): performance issue with typescript eslint.

* refact(NA): eslint configs organization.

* chore(NA): apply resticted paths to ts files too.

* chore(NA): split comment from eslint ignore.
2019-04-05 17:45:23 +01:00
Søren Louv-Jansen
4f3a827d69
Update APM readme 2018-12-12 14:04:33 +01:00
Søren Louv-Jansen
a015f031fa
[APM] Fix APM UI dev docs formatting 2018-12-03 10:59:35 +01:00
Søren Louv-Jansen
fb091c1c51
Update APM UI dev docs 2018-12-03 10:57:10 +01:00
Søren Louv-Jansen
87db27951f
[APM] Fix lint instructions 2018-08-22 18:23:27 +02:00
Jason Rhodes
0e50620656
Remove deprecated React lifecycle methods from APM code (#22147)
* Removes deprecated React lifecyle hooks from APM files

* Clarifies APM readme

* Adds tests for APM ServiceOverview
2018-08-20 13:29:51 -04:00
Jenkins CI
fe4609647d Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00