-
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
[Infra][Hosts] Display N/A badge for APM hosts without system metrics #191181
[Infra][Hosts] Display N/A badge for APM hosts without system metrics #191181
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.
Well done 👏 I checked the code and left some nits and I will test it later.
...bservability_solution/infra/public/pages/metrics/hosts/components/table/add_data_popover.tsx
Outdated
Show resolved
Hide resolved
...bservability_solution/infra/public/pages/metrics/hosts/components/table/add_data_popover.tsx
Outdated
Show resolved
Hide resolved
...lugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.test.ts
Outdated
Show resolved
Hide resolved
...bservability_solution/infra/public/pages/metrics/hosts/components/table/add_data_popover.tsx
Outdated
Show resolved
Hide resolved
...bservability_solution/infra/public/pages/metrics/hosts/components/table/add_data_popover.tsx
Outdated
Show resolved
Hide resolved
I tested the popover and it works as expected and has the correct links, thanks for adding it 💯 |
...bservability_solution/infra/public/pages/metrics/hosts/components/table/add_data_popover.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx
Show resolved
Hide resolved
…w !hasSystemMetrics
…within the same file
…inter suggestions
808bd3d
to
e44500c
Compare
…with-metrics-with-null-value
…with-metrics-with-null-value
…with-metrics-with-null-value
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! Thanks for this PR.
…with-metrics-with-null-value
…with-metrics-with-null-value
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.
Thank you for all the changes! I added a question, apart from that it LGTM!
...ck/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/observability_solution/infra/public/pages/metrics/hosts/hooks/use_hosts_table.tsx
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @iblancof |
Summary
Closes #190516
This PR introduces an "N/A" badge for hosts that are returned by the
metrics/infra/host
API withhasSystemMetrics
set tofalse
. This enhancement will help users quickly identify and address issues with APM hosts that are not monitored by the system integration. The badge will provide an explanation of the problem and suggest troubleshooting steps.Automated tests
Upon reviewing the code, I noticed that this screen is covered by functional tests.
My initial idea was to add some functional tests to verify the badge display as well as the button and link redirections. However, I found that this is quite complex, as it involves modifying the data used in the tests, and I’m still not very familiar with that process.
Given the deadline for this epic, I’ve decided not to include tests in this issue. If we believe they are really necessary, I would need to spend some time understanding how data is managed in our functional testing layer. Any feedback on this would be greatly appreciated.