-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Synthtrace][Inventory] K8s entities support #197077
[Synthtrace][Inventory] K8s entities support #197077
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
packages/kbn-apm-synthtrace-client/src/lib/entities/kubernetes/index.ts
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Public APIs missing comments
Public APIs missing exports
History
|
Starting backport for target branches: 8.x |
Part of elastic#196155 New Synthtrace scenario created: [k8s_entities.ts](https://github.com/elastic/kibana/pull/197077/files#diff-33a935a5fb8848d743e40d89b018ed8ac82ae992c0778cd6cea072d091aa0647) ``` node scripts/synthtrace k8s_entities.ts --clean --live ``` Cluster sample data: ``` { "_index": ".entities.v1.latest.builtin_kubernetes_cluster_ecss_from_ecs_data", "_id": "2060900000000000", "_score": 1, "_source": { "entity": { "type": "kubernetes_cluster_ecs", "id": "2060900000000000", "definitionId": "builtin_kubernetes_cluster_ecs", "displayName": "cluster_foo", "lastSeenTimestamp": "2024-10-21T16:15:17.570Z" }, "orchestrator": { "cluster": { "name": "cluster_foo" } }, "event": { "ingested": "2024-10-21T16:15:17.570Z" } } }, { "_index": ".entities.v1.latest.builtin_kubernetes_cluster_semconvs_from_ecs_data", "_id": "2060900000000000", "_score": 1, "_source": { "entity": { "type": "kubernetes_cluster_semconv", "id": "2060900000000000", "definitionId": "builtin_kubernetes_cluster_semconv", "displayName": "cluster_foo", "lastSeenTimestamp": "2024-10-21T16:15:17.570Z" }, "k8s": { "cluster": { "uid": "cluster_foo" } }, "event": { "ingested": "2024-10-21T16:15:17.570Z" } } }, ``` (cherry picked from commit 5e40320)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
5 similar comments
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `8.x`: - [[Synthtrace][Inventory] K8s entities support (#197077)](#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 (#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 (#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 (#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]>
Part of #196155
New Synthtrace scenario created: k8s_entities.ts
Cluster sample data: