-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Infra] Add observability feature id to host request #192898
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@elasticmachine merge upstream |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
To update your PR or re-run it, 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!
## Summary Fixes the Hosts view for serverless by enabling the `observability` feature id for the `/api/metrics/infra/{assetType}` request. Closes elastic#191078 ## How to test - Go to Infrastructure -> Hosts - Go to Alerts & Rules, Infrastructure Rules and create a new Inventory Rule, something like alert on cpu usage above certain %. - Allow the rule/alert to run - Go back to Infrastructure -> Hosts view - Hosts table should have a column with alert icons now visible for all hosts with alerts active on them. This should be tested against serverless + stateful versions of the Observability product. https://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3062292)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…193176) # Backport This will backport the following commits from `main` to `8.x`: - [[Infra] Add observability feature id to host request (#192898)](#192898) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gonçalo Rica Pais da Silva","email":"goncalo.rica@elastic.co"},"sourceCommit":{"committedDate":"2024-09-17T14:17:30Z","message":"[Infra] Add observability feature id to host request (#192898)\n\n## Summary\r\n\r\nFixes the Hosts view for serverless by enabling the `observability`\r\nfeature id for the `/api/metrics/infra/{assetType}` request.\r\n\r\nCloses #191078 \r\n\r\n## How to test\r\n\r\n- Go to Infrastructure -> Hosts\r\n- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory\r\nRule, something like alert on cpu usage above certain %.\r\n- Allow the rule/alert to run\r\n- Go back to Infrastructure -> Hosts view\r\n- Hosts table should have a column with alert icons now visible for all\r\nhosts with alerts active on them.\r\n\r\nThis should be tested against serverless + stateful versions of the\r\nObservability product.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"30622923f6aacfbf5f97838a2a8751e9dbc81812","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-infra_services","v8.15.0","v8.16.0"],"title":"[Infra] Add observability feature id to host request","number":192898,"url":"https://github.com/elastic/kibana/pull/192898","mergeCommit":{"message":"[Infra] Add observability feature id to host request (#192898)\n\n## Summary\r\n\r\nFixes the Hosts view for serverless by enabling the `observability`\r\nfeature id for the `/api/metrics/infra/{assetType}` request.\r\n\r\nCloses #191078 \r\n\r\n## How to test\r\n\r\n- Go to Infrastructure -> Hosts\r\n- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory\r\nRule, something like alert on cpu usage above certain %.\r\n- Allow the rule/alert to run\r\n- Go back to Infrastructure -> Hosts view\r\n- Hosts table should have a column with alert icons now visible for all\r\nhosts with alerts active on them.\r\n\r\nThis should be tested against serverless + stateful versions of the\r\nObservability product.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"30622923f6aacfbf5f97838a2a8751e9dbc81812"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192898","number":192898,"mergeCommit":{"message":"[Infra] Add observability feature id to host request (#192898)\n\n## Summary\r\n\r\nFixes the Hosts view for serverless by enabling the `observability`\r\nfeature id for the `/api/metrics/infra/{assetType}` request.\r\n\r\nCloses #191078 \r\n\r\n## How to test\r\n\r\n- Go to Infrastructure -> Hosts\r\n- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory\r\nRule, something like alert on cpu usage above certain %.\r\n- Allow the rule/alert to run\r\n- Go back to Infrastructure -> Hosts view\r\n- Hosts table should have a column with alert icons now visible for all\r\nhosts with alerts active on them.\r\n\r\nThis should be tested against serverless + stateful versions of the\r\nObservability product.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"30622923f6aacfbf5f97838a2a8751e9dbc81812"}},{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Gonçalo Rica Pais da Silva <goncalo.rica@elastic.co>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Fixes the Hosts view for serverless by enabling the `observability` feature id for the `/api/metrics/infra/{assetType}` request. Closes elastic#191078 ## How to test - Go to Infrastructure -> Hosts - Go to Alerts & Rules, Infrastructure Rules and create a new Inventory Rule, something like alert on cpu usage above certain %. - Allow the rule/alert to run - Go back to Infrastructure -> Hosts view - Hosts table should have a column with alert icons now visible for all hosts with alerts active on them. This should be tested against serverless + stateful versions of the Observability product. https://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732 Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3062292) # Conflicts: # x-pack/plugins/observability_solution/infra/server/routes/infra/lib/host/get_hosts_alerts_count.ts
…#193260) # Backport This will backport the following commits from `main` to `8.15`: - [[Infra] Add observability feature id to host request (#192898)](#192898) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gonçalo Rica Pais da Silva","email":"goncalo.rica@elastic.co"},"sourceCommit":{"committedDate":"2024-09-17T14:17:30Z","message":"[Infra] Add observability feature id to host request (#192898)\n\n## Summary\r\n\r\nFixes the Hosts view for serverless by enabling the `observability`\r\nfeature id for the `/api/metrics/infra/{assetType}` request.\r\n\r\nCloses #191078 \r\n\r\n## How to test\r\n\r\n- Go to Infrastructure -> Hosts\r\n- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory\r\nRule, something like alert on cpu usage above certain %.\r\n- Allow the rule/alert to run\r\n- Go back to Infrastructure -> Hosts view\r\n- Hosts table should have a column with alert icons now visible for all\r\nhosts with alerts active on them.\r\n\r\nThis should be tested against serverless + stateful versions of the\r\nObservability product.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"30622923f6aacfbf5f97838a2a8751e9dbc81812","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-infra_services","v8.15.0","v8.16.0"],"number":192898,"url":"https://github.com/elastic/kibana/pull/192898","mergeCommit":{"message":"[Infra] Add observability feature id to host request (#192898)\n\n## Summary\r\n\r\nFixes the Hosts view for serverless by enabling the `observability`\r\nfeature id for the `/api/metrics/infra/{assetType}` request.\r\n\r\nCloses #191078 \r\n\r\n## How to test\r\n\r\n- Go to Infrastructure -> Hosts\r\n- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory\r\nRule, something like alert on cpu usage above certain %.\r\n- Allow the rule/alert to run\r\n- Go back to Infrastructure -> Hosts view\r\n- Hosts table should have a column with alert icons now visible for all\r\nhosts with alerts active on them.\r\n\r\nThis should be tested against serverless + stateful versions of the\r\nObservability product.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"30622923f6aacfbf5f97838a2a8751e9dbc81812"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192898","number":192898,"mergeCommit":{"message":"[Infra] Add observability feature id to host request (#192898)\n\n## Summary\r\n\r\nFixes the Hosts view for serverless by enabling the `observability`\r\nfeature id for the `/api/metrics/infra/{assetType}` request.\r\n\r\nCloses #191078 \r\n\r\n## How to test\r\n\r\n- Go to Infrastructure -> Hosts\r\n- Go to Alerts & Rules, Infrastructure Rules and create a new Inventory\r\nRule, something like alert on cpu usage above certain %.\r\n- Allow the rule/alert to run\r\n- Go back to Infrastructure -> Hosts view\r\n- Hosts table should have a column with alert icons now visible for all\r\nhosts with alerts active on them.\r\n\r\nThis should be tested against serverless + stateful versions of the\r\nObservability product.\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"30622923f6aacfbf5f97838a2a8751e9dbc81812"}},{"branch":"8.15","label":"v8.15.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/193176","number":193176,"state":"MERGED","mergeCommit":{"sha":"13a392a54f80e14fbf7400cc9af175b6eb1aec71","message":"[8.x] [Infra] Add observability feature id to host request (#192898) (#193176)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.x`:\n- [[Infra] Add observability feature id to host request\n(#192898)](https://github.com/elastic/kibana/pull/192898)\n\n<!--- Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT [{\"author\":{\"name\":\"Gonçalo Rica Pais da\nSilva\",\"email\":\"goncalo.rica@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2024-09-17T14:17:30Z\",\"message\":\"[Infra]\nAdd observability feature id to host request (#192898)\\n\\n##\nSummary\\r\\n\\r\\nFixes the Hosts view for serverless by enabling the\n`observability`\\r\\nfeature id for the `/api/metrics/infra/{assetType}`\nrequest.\\r\\n\\r\\nCloses #191078 \\r\\n\\r\\n## How to test\\r\\n\\r\\n- Go to\nInfrastructure -> Hosts\\r\\n- Go to Alerts & Rules, Infrastructure Rules\nand create a new Inventory\\r\\nRule, something like alert on cpu usage\nabove certain %.\\r\\n- Allow the rule/alert to run\\r\\n- Go back to\nInfrastructure -> Hosts view\\r\\n- Hosts table should have a column with\nalert icons now visible for all\\r\\nhosts with alerts active on\nthem.\\r\\n\\r\\nThis should be tested against serverless + stateful\nversions of the\\r\\nObservability\nproduct.\\r\\n\\r\\n\\r\\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\\r\\n\\r\\nCo-authored-by:\nElastic Machine\n<elasticmachine@users.noreply.github.com>\",\"sha\":\"30622923f6aacfbf5f97838a2a8751e9dbc81812\",\"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-infra_services\",\"v8.15.0\",\"v8.16.0\"],\"title\":\"[Infra]\nAdd observability feature id to host\nrequest\",\"number\":192898,\"url\":\"https://github.com/elastic/kibana/pull/192898\",\"mergeCommit\":{\"message\":\"[Infra]\nAdd observability feature id to host request (#192898)\\n\\n##\nSummary\\r\\n\\r\\nFixes the Hosts view for serverless by enabling the\n`observability`\\r\\nfeature id for the `/api/metrics/infra/{assetType}`\nrequest.\\r\\n\\r\\nCloses #191078 \\r\\n\\r\\n## How to test\\r\\n\\r\\n- Go to\nInfrastructure -> Hosts\\r\\n- Go to Alerts & Rules, Infrastructure Rules\nand create a new Inventory\\r\\nRule, something like alert on cpu usage\nabove certain %.\\r\\n- Allow the rule/alert to run\\r\\n- Go back to\nInfrastructure -> Hosts view\\r\\n- Hosts table should have a column with\nalert icons now visible for all\\r\\nhosts with alerts active on\nthem.\\r\\n\\r\\nThis should be tested against serverless + stateful\nversions of the\\r\\nObservability\nproduct.\\r\\n\\r\\n\\r\\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\\r\\n\\r\\nCo-authored-by:\nElastic Machine\n<elasticmachine@users.noreply.github.com>\",\"sha\":\"30622923f6aacfbf5f97838a2a8751e9dbc81812\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.15\",\"8.x\"],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/192898\",\"number\":192898,\"mergeCommit\":{\"message\":\"[Infra]\nAdd observability feature id to host request (#192898)\\n\\n##\nSummary\\r\\n\\r\\nFixes the Hosts view for serverless by enabling the\n`observability`\\r\\nfeature id for the `/api/metrics/infra/{assetType}`\nrequest.\\r\\n\\r\\nCloses #191078 \\r\\n\\r\\n## How to test\\r\\n\\r\\n- Go to\nInfrastructure -> Hosts\\r\\n- Go to Alerts & Rules, Infrastructure Rules\nand create a new Inventory\\r\\nRule, something like alert on cpu usage\nabove certain %.\\r\\n- Allow the rule/alert to run\\r\\n- Go back to\nInfrastructure -> Hosts view\\r\\n- Hosts table should have a column with\nalert icons now visible for all\\r\\nhosts with alerts active on\nthem.\\r\\n\\r\\nThis should be tested against serverless + stateful\nversions of the\\r\\nObservability\nproduct.\\r\\n\\r\\n\\r\\nhttps://github.com/user-attachments/assets/8e0b36e0-30e6-4176-8190-592b3aaf2732\\r\\n\\r\\nCo-authored-by:\nElastic Machine\n<elasticmachine@users.noreply.github.com>\",\"sha\":\"30622923f6aacfbf5f97838a2a8751e9dbc81812\"}},{\"branch\":\"8.15\",\"label\":\"v8.15.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"},{\"branch\":\"8.x\",\"label\":\"v8.16.0\",\"branchLabelMappingKey\":\"^v8.16.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by: Gonçalo Rica Pais da Silva <goncalo.rica@elastic.co>"}}]}] BACKPORT-->
Summary
Fixes the Hosts view for serverless by enabling the
observability
feature id for the/api/metrics/infra/{assetType}
request.Closes #191078
How to test
This should be tested against serverless + stateful versions of the Observability product.
Screen.Recording.2024-09-16.115240.mp4