Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM] Implementing Journey for APM #160881

Conversation

achyutjhunjhunwala
Copy link
Contributor

@achyutjhunjhunwala achyutjhunjhunwala commented Jun 29, 2023

Summary

Closes - #153844

As part of this PR, as its just the stepping stone, we will only cover a basic navigation flow and analyze the result obtained from Steps Dashboard and data collected by the APM Agents for this journey

Scope

  • Generating a data set using Synthtrace instead of Archives
  • Capturing the flow from Service Inventory to Trace Waterfall loading on Transaction page
  • Capturing Event loop utilisation metrics enabled for APM Journey

How to run it

node scripts/run_performance.js --journey-path x-pack/performance/journeys/apm_service_inventory.ts --skip-warmup

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@achyutjhunjhunwala achyutjhunjhunwala changed the title [APM] Implementing Journey for APM [WIP] [APM] Implementing Journey for APM Jun 29, 2023
@achyutjhunjhunwala achyutjhunjhunwala self-assigned this Jun 29, 2023
@achyutjhunjhunwala achyutjhunjhunwala changed the title [WIP] [APM] Implementing Journey for APM [APM] Implementing Journey for APM Jul 12, 2023
@achyutjhunjhunwala achyutjhunjhunwala marked this pull request as ready for review July 12, 2023 11:29
@achyutjhunjhunwala achyutjhunjhunwala requested review from a team as code owners July 12, 2023 11:29
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Jul 12, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

@achyutjhunjhunwala achyutjhunjhunwala added the release_note:skip Skip the PR/issue when compiling release notes label Jul 13, 2023
@achyutjhunjhunwala achyutjhunjhunwala force-pushed the implement_journeys_for_apm branch 2 times, most recently from 1358f7b to 93a67dd Compare July 28, 2023 13:10
achyutjhunjhunwala and others added 9 commits July 28, 2023 16:41
## Summary

* Introduces a new API, POST `/api/risk_scores/calculate`, that triggers
the code introduced here
* As with the [preview
route](elastic#155966), this endpoint is
behind the `riskScoringRoutesEnabled` feature flag
* We intend to __REMOVE__ this endpoint before 8.10 release; it's mainly
a convenience/checkpoint for testing the existing code. The next PR will
introduce a scheduled Task Manager task that invokes this code
periodically.
* Updates to the /preview route:
* `data_view_id` is now a required parameter on both endpoints. If a
dataview is not found by that ID, the id is used as the general index
pattern to the query.
* Response has been updated to be more similar to the [ECS risk
fields](elastic/ecs#2236) powering this data.
* Mappings created by the [Data
Client](elastic#158422) have been updated
to be aligned to the ECS risk fields (linked above)
* Adds/updates the [OpenAPI
spec](https://github.com/elastic/kibana/blob/main/x-pack/plugins/security_solution/server/lib/risk_engine/schema/risk_score_apis.yml)
for these endpoints; useful starting point if you're trying to get
oriented here.


## Things to review
* [PR Demo
environment](https://rylnd-pr-161503-risk-score-task-api.kbndev.co/app/home)
* Preview API and related UI still works as expected
* Calculation/Persistence API correctly bootstraps/persists data
    * correct mappings/ILM are created
    * things work in non-default spaces
   



### Checklist


- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces—unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes—Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
@achyutjhunjhunwala achyutjhunjhunwala force-pushed the implement_journeys_for_apm branch from 60180bb to d3b0971 Compare July 28, 2023 14:46
@achyutjhunjhunwala achyutjhunjhunwala requested review from a team as code owners July 28, 2023 14:46
@achyutjhunjhunwala
Copy link
Contributor Author

Closing PR as it got a bit messed up while rebasing

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jul 28, 2023

💔 Build Failed

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 15.6MB 15.6MB +60.0B
Unknown metric groups

References to deprecated APIs

id before after diff
securitySolution 599 604 +5

History

  • 💚 Build #145533 succeeded 93a67ddd691082e95dfc30cccfb79d893e4ec989
  • 💛 Build #142137 was flaky a20a86cc2c7f926564e8eae52d4de13ed7ee166f
  • 💛 Build #141867 was flaky 470b55baccd5946d9ee138fedeaff7c755e4eb90
  • 💔 Build #141521 failed 88b46dd2003d9d0cd4268c0f5c63248113aa7a1b

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @achyutjhunjhunwala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants