-
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 UI] Add Docker section to node details page #43627
[Infra UI] Add Docker section to node details page #43627
Conversation
Pinging @elastic/infra-logs-ui |
@sorantis I wanted to add a Docker section to the node details page. This is the only metric I could find that made sense. Can you think of any others? I was hoping to show how much CPU and Memory Docker consumed on this host but there doesn't seem to be an easy way to get that. I tried to get the information from the container metrics but there isn't a clean way to do that without having double counting. |
💚 Build Succeeded |
@simianhacker The overview and container states information looks good.
Bonus?
|
@sorantis What if we started out with Top 5 Containers by CPU and Top 5 Containers by Memory? I'm starting to think we might want to move from sections in the side navigation to tabs along the top. I believe @hbharding is looking into this for the APM PR (#42710). I like the idea of some of the other sections you mentioned with lists but we don't have the facilities to do that right now. I think if we decided to move to tabs instead of sections in the navigation, then we could make a much richer custom experience instead of just a page full of charts. |
- Add label to series returned from metrics endpoint - Honor seriesOverride name or use label - Fix chart tooltip for long names - Add name to seriesOverrides for current layouts
💔 Build Failed |
💚 Build Succeeded |
@simianhacker You're right, I couldn't find any Docker specific metrics in the module. How does the user reach the Docker details this page? Network rx/tx charts can be added to the Container details page. +1 on improving navigation on this page (hope the tabs should enable a richer UX). The details page will also benefit from being more interactive. |
💚 Build Succeeded |
retest |
💔 Build Failed |
@sorantis For the actual Docker node detail page (for a container), we already have sections for Disk IO and Network Traffic. The issue right now is that there isn't any data in the Observability demo cluster for |
💔 Build Failed |
@sorantis Where are we with this PR? Do feel it's ready from a feature perspective to merge? If so then I can push to have an engineer review the technical parts. |
💔 Build Failed |
@simianhacker LGTM. We can revisit the remaining proposed sections when we've resolved the limitations related to the navigation. Has there any further discussion regarding moving to tabs instead of sections in the navigation? |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
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.
Left a few small comments, but otherwise it seems to work as intended 👍
x-pack/legacy/plugins/infra/public/components/metrics/sections/chart_section.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/components/metrics/sections/helpers/index.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/server/lib/adapters/metrics/models/host/host_docker_top_5_by_cpu.ts
Outdated
Show resolved
Hide resolved
.../legacy/plugins/infra/server/lib/adapters/metrics/models/host/host_docker_top_5_by_memory.ts
Outdated
Show resolved
Hide resolved
💔 Build Failed |
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
💚 Build Succeeded |
* [Infra UI] Add Docker section to node detail page * Add chart with terms aggregation for top 5 CPU and Memory - Add label to series returned from metrics endpoint - Honor seriesOverride name or use label - Fix chart tooltip for long names - Add name to seriesOverrides for current layouts * Fixing types * removing point changes, handled in seperate pr * Changing infMetricsExplorerChart className to infrastructureChart * updating comment with new functionality * updating id to human readable string
* [Infra UI] Add Docker section to node detail page * Add chart with terms aggregation for top 5 CPU and Memory - Add label to series returned from metrics endpoint - Honor seriesOverride name or use label - Fix chart tooltip for long names - Add name to seriesOverrides for current layouts * Fixing types * removing point changes, handled in seperate pr * Changing infMetricsExplorerChart className to infrastructureChart * updating comment with new functionality * updating id to human readable string
Summary
This PR adds a Docker section the node details page.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.This was checked for cross-browser compatibility, including a check against IE11Documentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenariosThis was checked for keyboard-only and screenreader accessibility