Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `main` to `8.x`: - [[ECO][Inventory v2] APM changes (#202497)](#202497) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cauê Marcondes","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-17T09:24:33Z","message":"[ECO][Inventory v2] APM changes (#202497)\n\nCloses [202299](https://github.com/elastic/kibana/issues/202299)\r\n\r\n## Summary\r\n\r\nThis PR replaces the query in `getServiceEntitySummary` with the v2\r\nfunction (`entityManagerClient.v2.searchEntities`)\r\n\r\n## Testing\r\n- Verify the response of the summary endpoint in the UI:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/ba895f7d-57c8-492b-81dd-cf7869ffbc86\r\n\r\n\r\n\r\n- Dev tools query\r\n - APM service\r\n #### Request:\r\n ```\r\nGET\r\nkbn:/internal/apm/entities/services/synth-node-0/summary?environment=ENVIRONMENT_ALL\r\n ```\r\n #### Response\r\n ```\r\n {\r\n \"serviceName\": \"synth-node-0\",\r\n \"agentName\": \"nodejs\",\r\n \"lastSeenTimestamp\": \"2024-12-13T16:29:19.868Z\",\r\n \"dataStreamTypes\": [\r\n \"logs\",\r\n \"traces\"\r\n ],\r\n \"environments\": [\r\n \"Synthtrace: simple_trace\"\r\n ]\r\n }\r\n ```\r\n\r\n - Service from logs\r\n #### Request:\r\n ```\r\nGET\r\nkbn:/internal/apm/entities/services/synth-node/summary?environment=ENVIRONMENT_ALL\r\n ```\r\n #### Response: \r\n ```\r\n {\r\n \"serviceName\": \"synth-node\",\r\n \"agentName\": \"go\",\r\n \"lastSeenTimestamp\": \"2024-12-13T16:27:43.461Z\",\r\n \"dataStreamTypes\": [\r\n \"logs\",\r\n \"traces\"\r\n ],\r\n \"environments\": [\r\n \"Synthtrace: logs_traces_hosts\"\r\n ]\r\n }\r\n ```\r\n\r\n---------\r\n\r\nCo-authored-by: Jenny <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"a66c1399e60b184c338fc99c9550539bd2ecf68b","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.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-infra_services"],"title":"[ECO][Inventory v2] APM changes","number":202497,"url":"https://github.com/elastic/kibana/pull/202497","mergeCommit":{"message":"[ECO][Inventory v2] APM changes (#202497)\n\nCloses [202299](https://github.com/elastic/kibana/issues/202299)\r\n\r\n## Summary\r\n\r\nThis PR replaces the query in `getServiceEntitySummary` with the v2\r\nfunction (`entityManagerClient.v2.searchEntities`)\r\n\r\n## Testing\r\n- Verify the response of the summary endpoint in the UI:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/ba895f7d-57c8-492b-81dd-cf7869ffbc86\r\n\r\n\r\n\r\n- Dev tools query\r\n - APM service\r\n #### Request:\r\n ```\r\nGET\r\nkbn:/internal/apm/entities/services/synth-node-0/summary?environment=ENVIRONMENT_ALL\r\n ```\r\n #### Response\r\n ```\r\n {\r\n \"serviceName\": \"synth-node-0\",\r\n \"agentName\": \"nodejs\",\r\n \"lastSeenTimestamp\": \"2024-12-13T16:29:19.868Z\",\r\n \"dataStreamTypes\": [\r\n \"logs\",\r\n \"traces\"\r\n ],\r\n \"environments\": [\r\n \"Synthtrace: simple_trace\"\r\n ]\r\n }\r\n ```\r\n\r\n - Service from logs\r\n #### Request:\r\n ```\r\nGET\r\nkbn:/internal/apm/entities/services/synth-node/summary?environment=ENVIRONMENT_ALL\r\n ```\r\n #### Response: \r\n ```\r\n {\r\n \"serviceName\": \"synth-node\",\r\n \"agentName\": \"go\",\r\n \"lastSeenTimestamp\": \"2024-12-13T16:27:43.461Z\",\r\n \"dataStreamTypes\": [\r\n \"logs\",\r\n \"traces\"\r\n ],\r\n \"environments\": [\r\n \"Synthtrace: logs_traces_hosts\"\r\n ]\r\n }\r\n ```\r\n\r\n---------\r\n\r\nCo-authored-by: Jenny <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"a66c1399e60b184c338fc99c9550539bd2ecf68b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202497","number":202497,"mergeCommit":{"message":"[ECO][Inventory v2] APM changes (#202497)\n\nCloses [202299](https://github.com/elastic/kibana/issues/202299)\r\n\r\n## Summary\r\n\r\nThis PR replaces the query in `getServiceEntitySummary` with the v2\r\nfunction (`entityManagerClient.v2.searchEntities`)\r\n\r\n## Testing\r\n- Verify the response of the summary endpoint in the UI:\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/ba895f7d-57c8-492b-81dd-cf7869ffbc86\r\n\r\n\r\n\r\n- Dev tools query\r\n - APM service\r\n #### Request:\r\n ```\r\nGET\r\nkbn:/internal/apm/entities/services/synth-node-0/summary?environment=ENVIRONMENT_ALL\r\n ```\r\n #### Response\r\n ```\r\n {\r\n \"serviceName\": \"synth-node-0\",\r\n \"agentName\": \"nodejs\",\r\n \"lastSeenTimestamp\": \"2024-12-13T16:29:19.868Z\",\r\n \"dataStreamTypes\": [\r\n \"logs\",\r\n \"traces\"\r\n ],\r\n \"environments\": [\r\n \"Synthtrace: simple_trace\"\r\n ]\r\n }\r\n ```\r\n\r\n - Service from logs\r\n #### Request:\r\n ```\r\nGET\r\nkbn:/internal/apm/entities/services/synth-node/summary?environment=ENVIRONMENT_ALL\r\n ```\r\n #### Response: \r\n ```\r\n {\r\n \"serviceName\": \"synth-node\",\r\n \"agentName\": \"go\",\r\n \"lastSeenTimestamp\": \"2024-12-13T16:27:43.461Z\",\r\n \"dataStreamTypes\": [\r\n \"logs\",\r\n \"traces\"\r\n ],\r\n \"environments\": [\r\n \"Synthtrace: logs_traces_hosts\"\r\n ]\r\n }\r\n ```\r\n\r\n---------\r\n\r\nCo-authored-by: Jenny <[email protected]>\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"a66c1399e60b184c338fc99c9550539bd2ecf68b"}}]}] BACKPORT--> Co-authored-by: Cauê Marcondes <[email protected]>
- Loading branch information