Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Investigation app] add entities route and investigation Contex…
…tual Insight (#194432) (#195158) # Backport This will backport the following commits from `main` to `8.x`: - [[Investigation app] add entities route and investigation Contextual Insight (#194432)](#194432) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dominique Clarke","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-04T17:58:28Z","message":"[Investigation app] add entities route and investigation Contextual Insight (#194432)\n\n## Summary\r\n\r\nAdds a route that can be used to fetch entities related to an\r\ninvestigation.\r\n\r\nThe route fetches associated entities by service name, host name, or\r\ncontainer id. It then identifies the associated indices and datastreams.\r\n\r\nThe discovered entities are passed to the contextual insight to inform\r\nthe LLM.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/855a8d68-b039-4557-ba23-5661cd961021)\r\n\r\nThis PR represents the first step in developing an AI-informed\r\nhypothesis at the beginning of the investigation. Over time, further\r\ninsights will be provided to the LLM to deepen it's investigative\r\nanalysis and propose a more helpful root cause hypothesis.\r\n\r\n### Testing\r\n\r\n1. Create some APM data. I'm using the otel demo and triggering a\r\nfailure via the flagd service. Since this is in flux, you can reach out\r\nto me about this workflow. However, you can also create APM data via\r\n`synth-trace`.\r\n2. Create an custom threshold rule that you expect to trigger an alert.\r\nI created mine to using `http.response.status_code: 500 /\r\nhttp.response.status_code : *` and set a low threshold base on the\r\namount of failures in my current test data. Be sure to also group the\r\nalert by `service.name`\r\n3. Wait for the alert to fire, then visit the alert details page and\r\nstart an investigation\r\n4. notice the contextual insight. Expand it to see more information\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"e4bb435b48560852b37e4de54fb9c05cf5a7f3b1","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0"],"number":194432,"url":"https://github.com/elastic/kibana/pull/194432","mergeCommit":{"message":"[Investigation app] add entities route and investigation Contextual Insight (#194432)\n\n## Summary\r\n\r\nAdds a route that can be used to fetch entities related to an\r\ninvestigation.\r\n\r\nThe route fetches associated entities by service name, host name, or\r\ncontainer id. It then identifies the associated indices and datastreams.\r\n\r\nThe discovered entities are passed to the contextual insight to inform\r\nthe LLM.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/855a8d68-b039-4557-ba23-5661cd961021)\r\n\r\nThis PR represents the first step in developing an AI-informed\r\nhypothesis at the beginning of the investigation. Over time, further\r\ninsights will be provided to the LLM to deepen it's investigative\r\nanalysis and propose a more helpful root cause hypothesis.\r\n\r\n### Testing\r\n\r\n1. Create some APM data. I'm using the otel demo and triggering a\r\nfailure via the flagd service. Since this is in flux, you can reach out\r\nto me about this workflow. However, you can also create APM data via\r\n`synth-trace`.\r\n2. Create an custom threshold rule that you expect to trigger an alert.\r\nI created mine to using `http.response.status_code: 500 /\r\nhttp.response.status_code : *` and set a low threshold base on the\r\namount of failures in my current test data. Be sure to also group the\r\nalert by `service.name`\r\n3. Wait for the alert to fire, then visit the alert details page and\r\nstart an investigation\r\n4. notice the contextual insight. Expand it to see more information\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"e4bb435b48560852b37e4de54fb9c05cf5a7f3b1"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194432","number":194432,"mergeCommit":{"message":"[Investigation app] add entities route and investigation Contextual Insight (#194432)\n\n## Summary\r\n\r\nAdds a route that can be used to fetch entities related to an\r\ninvestigation.\r\n\r\nThe route fetches associated entities by service name, host name, or\r\ncontainer id. It then identifies the associated indices and datastreams.\r\n\r\nThe discovered entities are passed to the contextual insight to inform\r\nthe LLM.\r\n\r\n\r\n![image](https://github.com/user-attachments/assets/855a8d68-b039-4557-ba23-5661cd961021)\r\n\r\nThis PR represents the first step in developing an AI-informed\r\nhypothesis at the beginning of the investigation. Over time, further\r\ninsights will be provided to the LLM to deepen it's investigative\r\nanalysis and propose a more helpful root cause hypothesis.\r\n\r\n### Testing\r\n\r\n1. Create some APM data. I'm using the otel demo and triggering a\r\nfailure via the flagd service. Since this is in flux, you can reach out\r\nto me about this workflow. However, you can also create APM data via\r\n`synth-trace`.\r\n2. Create an custom threshold rule that you expect to trigger an alert.\r\nI created mine to using `http.response.status_code: 500 /\r\nhttp.response.status_code : *` and set a low threshold base on the\r\namount of failures in my current test data. Be sure to also group the\r\nalert by `service.name`\r\n3. Wait for the alert to fire, then visit the alert details page and\r\nstart an investigation\r\n4. notice the contextual insight. Expand it to see more information\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"e4bb435b48560852b37e4de54fb9c05cf5a7f3b1"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Rickyanto Ang <[email protected]>
- Loading branch information