Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Synthtrace][Inventory] K8s entities support (elastic#197077) (e…
…lastic#197293) # Backport This will backport the following commits from `main` to `8.x`: - [[Synthtrace][Inventory] K8s entities support (elastic#197077)](elastic#197077) <!--- 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-10-22T15:43:29Z","message":"[Synthtrace][Inventory] K8s entities support (elastic#197077)\n\nPart of https://github.com/elastic/kibana/issues/196155\r\n\r\nNew Synthtrace scenario created:\r\n[k8s_entities.ts](https://github.com/elastic/kibana/pull/197077/files#diff-33a935a5fb8848d743e40d89b018ed8ac82ae992c0778cd6cea072d091aa0647)\r\n\r\n```\r\nnode scripts/synthtrace k8s_entities.ts --clean --live\r\n```\r\n\r\n\r\nCluster sample data:\r\n```\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_kubernetes_cluster_ecss_from_ecs_data\",\r\n \"_id\": \"2060900000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"entity\": {\r\n \"type\": \"kubernetes_cluster_ecs\",\r\n \"id\": \"2060900000000000\",\r\n \"definitionId\": \"builtin_kubernetes_cluster_ecs\",\r\n \"displayName\": \"cluster_foo\",\r\n \"lastSeenTimestamp\": \"2024-10-21T16:15:17.570Z\"\r\n },\r\n \"orchestrator\": {\r\n \"cluster\": {\r\n \"name\": \"cluster_foo\"\r\n }\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-21T16:15:17.570Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_kubernetes_cluster_semconvs_from_ecs_data\",\r\n \"_id\": \"2060900000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"entity\": {\r\n \"type\": \"kubernetes_cluster_semconv\",\r\n \"id\": \"2060900000000000\",\r\n \"definitionId\": \"builtin_kubernetes_cluster_semconv\",\r\n \"displayName\": \"cluster_foo\",\r\n \"lastSeenTimestamp\": \"2024-10-21T16:15:17.570Z\"\r\n },\r\n \"k8s\": {\r\n \"cluster\": {\r\n \"uid\": \"cluster_foo\"\r\n }\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-21T16:15:17.570Z\"\r\n }\r\n }\r\n },\r\n```","sha":"5e40320d9fe2d2c0b676071edf011c5831d43662","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.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","v8.17.0"],"title":"[Synthtrace][Inventory] K8s entities support","number":197077,"url":"https://github.com/elastic/kibana/pull/197077","mergeCommit":{"message":"[Synthtrace][Inventory] K8s entities support (elastic#197077)\n\nPart of https://github.com/elastic/kibana/issues/196155\r\n\r\nNew Synthtrace scenario created:\r\n[k8s_entities.ts](https://github.com/elastic/kibana/pull/197077/files#diff-33a935a5fb8848d743e40d89b018ed8ac82ae992c0778cd6cea072d091aa0647)\r\n\r\n```\r\nnode scripts/synthtrace k8s_entities.ts --clean --live\r\n```\r\n\r\n\r\nCluster sample data:\r\n```\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_kubernetes_cluster_ecss_from_ecs_data\",\r\n \"_id\": \"2060900000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"entity\": {\r\n \"type\": \"kubernetes_cluster_ecs\",\r\n \"id\": \"2060900000000000\",\r\n \"definitionId\": \"builtin_kubernetes_cluster_ecs\",\r\n \"displayName\": \"cluster_foo\",\r\n \"lastSeenTimestamp\": \"2024-10-21T16:15:17.570Z\"\r\n },\r\n \"orchestrator\": {\r\n \"cluster\": {\r\n \"name\": \"cluster_foo\"\r\n }\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-21T16:15:17.570Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_kubernetes_cluster_semconvs_from_ecs_data\",\r\n \"_id\": \"2060900000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"entity\": {\r\n \"type\": \"kubernetes_cluster_semconv\",\r\n \"id\": \"2060900000000000\",\r\n \"definitionId\": \"builtin_kubernetes_cluster_semconv\",\r\n \"displayName\": \"cluster_foo\",\r\n \"lastSeenTimestamp\": \"2024-10-21T16:15:17.570Z\"\r\n },\r\n \"k8s\": {\r\n \"cluster\": {\r\n \"uid\": \"cluster_foo\"\r\n }\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-21T16:15:17.570Z\"\r\n }\r\n }\r\n },\r\n```","sha":"5e40320d9fe2d2c0b676071edf011c5831d43662"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197077","number":197077,"mergeCommit":{"message":"[Synthtrace][Inventory] K8s entities support (elastic#197077)\n\nPart of https://github.com/elastic/kibana/issues/196155\r\n\r\nNew Synthtrace scenario created:\r\n[k8s_entities.ts](https://github.com/elastic/kibana/pull/197077/files#diff-33a935a5fb8848d743e40d89b018ed8ac82ae992c0778cd6cea072d091aa0647)\r\n\r\n```\r\nnode scripts/synthtrace k8s_entities.ts --clean --live\r\n```\r\n\r\n\r\nCluster sample data:\r\n```\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_kubernetes_cluster_ecss_from_ecs_data\",\r\n \"_id\": \"2060900000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"entity\": {\r\n \"type\": \"kubernetes_cluster_ecs\",\r\n \"id\": \"2060900000000000\",\r\n \"definitionId\": \"builtin_kubernetes_cluster_ecs\",\r\n \"displayName\": \"cluster_foo\",\r\n \"lastSeenTimestamp\": \"2024-10-21T16:15:17.570Z\"\r\n },\r\n \"orchestrator\": {\r\n \"cluster\": {\r\n \"name\": \"cluster_foo\"\r\n }\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-21T16:15:17.570Z\"\r\n }\r\n }\r\n },\r\n {\r\n \"_index\": \".entities.v1.latest.builtin_kubernetes_cluster_semconvs_from_ecs_data\",\r\n \"_id\": \"2060900000000000\",\r\n \"_score\": 1,\r\n \"_source\": {\r\n \"entity\": {\r\n \"type\": \"kubernetes_cluster_semconv\",\r\n \"id\": \"2060900000000000\",\r\n \"definitionId\": \"builtin_kubernetes_cluster_semconv\",\r\n \"displayName\": \"cluster_foo\",\r\n \"lastSeenTimestamp\": \"2024-10-21T16:15:17.570Z\"\r\n },\r\n \"k8s\": {\r\n \"cluster\": {\r\n \"uid\": \"cluster_foo\"\r\n }\r\n },\r\n \"event\": {\r\n \"ingested\": \"2024-10-21T16:15:17.570Z\"\r\n }\r\n }\r\n },\r\n```","sha":"5e40320d9fe2d2c0b676071edf011c5831d43662"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Cauê Marcondes <[email protected]>
- Loading branch information