kibana/x-pack/plugins/observability
Katerina Patticha 1804a3479e
[8.6] [APM] Enable Operations Breakdown by default (#148305) (#148345)
# Backport

This will backport the following commits from `main` to `8.6`:
- [[APM] Enable Operations Breakdown by default
(#148305)](https://github.com/elastic/kibana/pull/148305)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Katerina
Patticha","email":"aikaterini.patticha@elastic.co"},"sourceCommit":{"committedDate":"2023-01-03T16:57:16Z","message":"[APM]
Enable Operations Breakdown by default (#148305)\n\n##
Summary\r\n\r\ncloses:
210387189-41423215-b17e-49b3-a84b-4e080ad4fc5b.mov\r\n\r\n1.
Enables Operations Breakdown \r\n2. Removes the advanced setting for the
operations\r\n3. Passes the
params","sha":"1d0a8c9ddd47fc6b9a70e3b46bb15ef0553ce18f","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:APM","release_note:skip","backport:prev-minor","v8.6.0","v8.7.0"],"number":148305,"url":"https://github.com/elastic/kibana/pull/148305","mergeCommit":{"message":"[APM]
Enable Operations Breakdown by default (#148305)\n\n##
Summary\r\n\r\ncloses:
210387189-41423215-b17e-49b3-a84b-4e080ad4fc5b.mov\r\n\r\n1.
Enables Operations Breakdown \r\n2. Removes the advanced setting for the
operations\r\n3. Passes the
params","sha":"1d0a8c9ddd47fc6b9a70e3b46bb15ef0553ce18f"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148305","number":148305,"mergeCommit":{"message":"[APM]
Enable Operations Breakdown by default (#148305)\n\n##
Summary\r\n\r\ncloses:
210387189-41423215-b17e-49b3-a84b-4e080ad4fc5b.mov\r\n\r\n1.
Enables Operations Breakdown \r\n2. Removes the advanced setting for the
operations\r\n3. Passes the
params","sha":"1d0a8c9ddd47fc6b9a70e3b46bb15ef0553ce18f"}}]}]
BACKPORT-->

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-04 00:40:32 -07:00
..
.storybook fix all violations 2022-04-16 01:37:30 -05:00
common [8.6] [APM] Enable Operations Breakdown by default (#148305) (#148345) 2023-01-04 00:40:32 -07:00
dev_docs chore(slo): small refactoring improvements (#144930) 2022-11-10 15:28:27 -05:00
e2e [8.6] Change style of rule tags in alert details page (#145946) (#146118) 2022-11-23 04:44:42 -07:00
public [8.6] Make page titles more consistent for Overview, Alerts, Rules, Rule Detail and Cases pages (#146150) (#146807) 2022-12-01 11:07:14 -06:00
scripts chore(NA): eslint rule for disallowing naked eslint-disable (#136408) 2022-07-19 17:11:04 +01:00
server [8.6] [APM] Enable Operations Breakdown by default (#148305) (#148345) 2023-01-04 00:40:32 -07:00
typings [inspector] remove root-level redirect to common (#136999) 2022-07-25 11:33:51 -05:00
jest.config.js [jest] update config files to get coverage per plugin (#111299) 2021-09-09 08:14:56 +02:00
kibana.json [Exploratory view] Use series names as labels (#143458) 2022-10-20 10:37:39 +02:00
README.md feat(slo): Create basic SLO route (#139490) 2022-08-29 11:05:31 -04:00
tsconfig.json [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00

Observability plugin

This plugin provides shared components and services for use across observability solutions, as well as the observability landing page UI.

Rules, Alerts, and Cases

In order to have alert data indexed you'll need to enable writing in the Rule Registry plugin:

xpack.ruleRegistry.write.enabled: true

When this is set to true, your alerts should show on the alerts page.

SLOs

If you have:

xpack.observability.unsafe.slo.enabled: true

In your Kibana configuration, the SLO feature will be available.

Shared navigation

The Observability plugin maintains a navigation registry for Observability solutions, and exposes a shared page template component. Please refer to the docs in the component directory for more information on registering your solution's navigation structure, and rendering the navigation via the shared component.

Exploratory view component

A shared component for visualizing observability data types via lens embeddable. For further details.

Unit testing

Note: Run the following commands from kibana/x-pack/plugins/observability.

Run unit tests

npx jest --watch

Update snapshots

npx jest --updateSnapshot

Coverage

HTML coverage report can be found in target/coverage/jest after tests have run.

open target/coverage/jest/index.html

API integration testing

API tests are separated in two suites:

  • a basic license test suite
  • a trial license test suite (the equivalent of gold+)

This requires separate test servers and test runners.

Basic

# Start server
node scripts/functional_tests_server --config x-pack/test/observability_api_integration/basic/config.ts

# Run tests
node scripts/functional_test_runner --config x-pack/test/observability_api_integration/basic/config.ts

The API tests for "basic" are located in x-pack/test/observability_api_integration/basic/tests.

Trial

# Start server
node scripts/functional_tests_server --config x-pack/test/observability_api_integration/trial/config.ts

# Run tests
node scripts/functional_test_runner --config x-pack/test/observability_api_integration/trial/config.ts

The API tests for "trial" are located in x-pack/test/observability_api_integration/trial/tests.

API test tips

  • For debugging access Elasticsearch on http://localhost:9220` (elastic/changeme)
  • To update snapshots append --updateSnapshots to the functional_test_runner command