Skip to content
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

[ObsUx] [Infra] Change container details view with asset details view #180436

Merged

Conversation

MiriamAparicio
Copy link
Contributor

@MiriamAparicio MiriamAparicio commented Apr 10, 2024

Part of #179844

In this PR

  • From Inventory, open asset details page view for Containers
  • Show overview tab with CPU and Memory KPIs and metric charts
  • Metadata tab with old fields, more metadata fields will be shown in follow-up PR
  • Added links to container metrics documentation, currently there are no docs for K8s metrics just for docker containers

How to test

  • The feature is under a FF, on inventory page go to settings and enable Container view
  • In containers inventory, select a container and click on 'Docker container metrics' link (there's an issue to reword this links as K8s containers are also shown)
  • Container details page should be shown with overview and metadata tabs
  • On overview tab KPIs for CPU and Memory and Metrics section with CPU and Memory charts should be displayed
image

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@MiriamAparicio MiriamAparicio marked this pull request as ready for review May 2, 2024 10:56
@MiriamAparicio MiriamAparicio requested review from a team as code owners May 2, 2024 10:56
@MiriamAparicio MiriamAparicio added v8.15.0 release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels May 2, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label May 2, 2024
@crespocarlos crespocarlos self-requested a review May 2, 2024 11:21
@MiriamAparicio MiriamAparicio force-pushed the 179844-container-asset-details-view branch from 026620f to 6f1973f Compare May 2, 2024 15:36
@MiriamAparicio MiriamAparicio force-pushed the 179844-container-asset-details-view branch from 365ced1 to 07eadf0 Compare May 2, 2024 16:29
@smith
Copy link
Contributor

smith commented May 3, 2024

/oblt-deploy-serverless

@MiriamAparicio MiriamAparicio force-pushed the 179844-container-asset-details-view branch from 62b894b to 7753742 Compare May 10, 2024 13:29
@MiriamAparicio MiriamAparicio force-pushed the 179844-container-asset-details-view branch from b5f7604 to a69a97b Compare May 13, 2024 16:13
@MiriamAparicio MiriamAparicio force-pushed the 179844-container-asset-details-view branch from ba3d65f to 8c12e90 Compare May 15, 2024 11:07
Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT! Thanks for this PR. Left a couple of nits, but it's ok to merge.

dataViewId: dataView?.id,
options: { overview },
});
export const KubernetesNodeCharts = React.forwardRef<HTMLDivElement, MetricsChartsFields>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for moving this component into this file.

await infraSynthtraceKibanaClient.installSystemPackage(version);
synthEsClient = await getInfraSynthtraceEsClient(esClient);
await synthEsClient.index(
generateDockerContainersData({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 !


await pageObjects.assetDetails.clickOverviewTab();
});
// Add this test after implementing the creation of metadata for containers in sythtrace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to merge these commented-out lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we don't need to merge them, was just a reminder to add those test when we can see the metrics data

@MiriamAparicio MiriamAparicio force-pushed the 179844-container-asset-details-view branch from a89627f to 8fc3332 Compare May 16, 2024 09:14
@MiriamAparicio MiriamAparicio requested review from a team as code owners May 16, 2024 09:14
@botelastic botelastic bot added the Team:obs-ux-management Observability Management User Experience Team label May 16, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in the UI settings collector LGTM.

Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI settings constant LGTM 👍

Copy link
Member

@weltenwort weltenwort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes to synthtrace code co-owned by obs-ux-logs LGTM 👍

@kibana-ci
Copy link
Collaborator

kibana-ci commented May 16, 2024

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1556 1561 +5
metricsDataAccess 275 281 +6
total +11

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/apm-synthtrace-client 191 193 +2
@kbn/management-settings-ids 135 136 +1
observability 678 686 +8
total +11

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 1.5MB 1.5MB +8.0KB
metricsDataAccess 85.2KB 97.8KB +12.6KB
total +20.6KB

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
module count - 5405 +5405
total size - 8.8MB +8.8MB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/apm-synthtrace-client 28 30 +2

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
metricsDataAccess 56.9KB 57.0KB +160.0B
observability 151.3KB 151.5KB +237.0B
total +397.0B
Unknown metric groups

API count

id before after diff
@kbn/apm-synthtrace-client 191 193 +2
@kbn/management-settings-ids 138 139 +1
observability 687 695 +8
total +11

async chunk count

id before after diff
metricsDataAccess 6 8 +2

ESLint disabled in files

id before after diff
@kbn/apm-synthtrace-client 3 4 +1

Total ESLint disabled count

id before after diff
@kbn/apm-synthtrace-client 5 6 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@MiriamAparicio MiriamAparicio merged commit a4579a7 into elastic:main May 16, 2024
21 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 16, 2024
@MiriamAparicio MiriamAparicio deleted the 179844-container-asset-details-view branch May 16, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team Team:obs-ux-management Observability Management User Experience Team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet