-
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
[Inventory][ECO] Show alerts for entities #195250
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
…into 194381-entities-alerts
…into 194381-entities-alerts
…into 194381-entities-alerts
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.
obs-ux-management changes LGTM
@flash1293 good point, thanks for reviewing it. This is happening cause in APM we fetch alerts that are produced from apm kibana/x-pack/plugins/observability_solution/apm/server/lib/helpers/get_apm_alerts_client.ts Line 34 in 62ca320
I created a separate issue #196053 to tackle this |
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.
Round 2
x-pack/plugins/observability_solution/inventory/public/components/alerts_badge/alerts_badge.tsx
Outdated
Show resolved
Hide resolved
...servability_solution/inventory/server/routes/entities/get_identity_fields_per_entity_type.ts
Outdated
Show resolved
Hide resolved
...servability_solution/inventory/server/routes/entities/get_identity_fields_per_entity_type.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/inventory/server/routes/entities/get_latest_entities.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/inventory/server/routes/entities/get_latest_entities.ts
Show resolved
Hide resolved
...lugins/observability_solution/inventory/server/routes/entities/get_latest_entities_alerts.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/inventory/server/routes/entities/route.ts
Show resolved
Hide resolved
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. Just a nit
...servability_solution/inventory/server/routes/entities/get_identity_fields_per_entity_type.ts
Outdated
Show resolved
Hide resolved
…entities/get_identity_fields_per_entity_type.ts Co-authored-by: Cauê Marcondes <[email protected]>
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
Starting backport for target branches: 8.x |
## Summary Show alerts related to entities close elastic#194381 ### Checklist - change default sorting from last seen to alertsCount - when alertsCount is not available server side sorting fallbacks to last seen - [Change app route from /app/observability/inventory to /app/inventory](elastic@57598d0) (causing issue when importing observability plugin - refactoring: move columns into seperate file https://github.com/user-attachments/assets/ea3abc5a-0581-41e7-a174-6655a39c1133 ### How to test - run any synthtrace scenario ex`node scripts/synthtrace infra_hosts_with_apm_hosts.ts` - create a rule (SLO or apm) - click on the alert count --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Cauê Marcondes <[email protected]> (cherry picked from commit c0bd82b)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Inventory][ECO] Show alerts for entities (#195250)](#195250) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Katerina","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-15T11:51:34Z","message":"[Inventory][ECO] Show alerts for entities (#195250)\n\n## Summary\r\n\r\nShow alerts related to entities\r\n\r\nclose #194381 \r\n\r\n### Checklist\r\n\r\n- change default sorting from last seen to alertsCount\r\n- when alertsCount is not available server side sorting fallbacks to\r\nlast seen\r\n- [Change app route from /app/observability/inventory to\r\n/app/inventory](https://github.com/elastic/kibana/pull/195250/commits/57598d05fbc27b5ef1c2654508719e4bd8069879)\r\n(causing issue when importing observability plugin\r\n- refactoring: move columns into seperate file \r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/ea3abc5a-0581-41e7-a174-6655a39c1133\r\n\r\n\r\n\r\n### How to test\r\n- run any synthtrace scenario ex`node scripts/synthtrace\r\ninfra_hosts_with_apm_hosts.ts`\r\n- create a rule (SLO or apm) \r\n- click on the alert count\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"c0bd82b30ca7e0fec99321412a37a2e37bc20970","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["v9.0.0","release_note:feature","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"title":"[Inventory][ECO] Show alerts for entities ","number":195250,"url":"https://github.com/elastic/kibana/pull/195250","mergeCommit":{"message":"[Inventory][ECO] Show alerts for entities (#195250)\n\n## Summary\r\n\r\nShow alerts related to entities\r\n\r\nclose #194381 \r\n\r\n### Checklist\r\n\r\n- change default sorting from last seen to alertsCount\r\n- when alertsCount is not available server side sorting fallbacks to\r\nlast seen\r\n- [Change app route from /app/observability/inventory to\r\n/app/inventory](https://github.com/elastic/kibana/pull/195250/commits/57598d05fbc27b5ef1c2654508719e4bd8069879)\r\n(causing issue when importing observability plugin\r\n- refactoring: move columns into seperate file \r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/ea3abc5a-0581-41e7-a174-6655a39c1133\r\n\r\n\r\n\r\n### How to test\r\n- run any synthtrace scenario ex`node scripts/synthtrace\r\ninfra_hosts_with_apm_hosts.ts`\r\n- create a rule (SLO or apm) \r\n- click on the alert count\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"c0bd82b30ca7e0fec99321412a37a2e37bc20970"}},"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/195250","number":195250,"mergeCommit":{"message":"[Inventory][ECO] Show alerts for entities (#195250)\n\n## Summary\r\n\r\nShow alerts related to entities\r\n\r\nclose #194381 \r\n\r\n### Checklist\r\n\r\n- change default sorting from last seen to alertsCount\r\n- when alertsCount is not available server side sorting fallbacks to\r\nlast seen\r\n- [Change app route from /app/observability/inventory to\r\n/app/inventory](https://github.com/elastic/kibana/pull/195250/commits/57598d05fbc27b5ef1c2654508719e4bd8069879)\r\n(causing issue when importing observability plugin\r\n- refactoring: move columns into seperate file \r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/ea3abc5a-0581-41e7-a174-6655a39c1133\r\n\r\n\r\n\r\n### How to test\r\n- run any synthtrace scenario ex`node scripts/synthtrace\r\ninfra_hosts_with_apm_hosts.ts`\r\n- create a rule (SLO or apm) \r\n- click on the alert count\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"c0bd82b30ca7e0fec99321412a37a2e37bc20970"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Katerina <[email protected]>
Summary
Show alerts related to entities
close #194381
Checklist
Screen.Recording.2024-10-10.at.18.56.01.mov
How to test
node scripts/synthtrace infra_hosts_with_apm_hosts.ts