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

[metrics_data_access] move MetricsTable components to package #170122

Open
klacabane opened this issue Oct 30, 2023 · 8 comments
Open

[metrics_data_access] move MetricsTable components to package #170122

klacabane opened this issue Oct 30, 2023 · 8 comments
Labels
Feature:Metrics UI Metrics UI feature Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team technical debt Improvement of the software architecture and operational architecture

Comments

@klacabane
Copy link
Contributor

Summary

#166834 follow up

In #166834 we removed the apm->infra dependency by moving the necessary components out of infra plugin to metrics_data_access. The UI components are still part of the plugin start contract but should be moved to a package that can be statically imported; the observability package is a good place to host the components. At the moment the components are only used in apm plugin's Infrastructure tab.

Acceptance criteria

  • MetricsTable components are not part of the metrics_data_access start contract
  • MetricsTable components can be statically imported from a package
  • apm imports the components from a package
@klacabane klacabane added Feature:Metrics UI Metrics UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Oct 30, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@smith smith added the technical debt Improvement of the software architecture and operational architecture label Oct 30, 2023
@smith smith added Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team and removed Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Nov 13, 2023
@elasticmachine
Copy link
Contributor

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

@roshan-elastic
Copy link

Thanks for this, I've reviewed this but in order to prioritise, more info needed in order to understand user value for this.

Are you able to summarise what this value this brings to the user?

@jasonrhodes
Copy link
Member

@roshan-elastic this is tech debt, so no value to the user, but value to reducing the underlying complexity of the app, preventing bugs, making it simpler to develop new features that touch this code, etc. I'll leave it to @klacabane to weigh in on whether this still a good ROI on the chore/tech debt front! :)

@klacabane
Copy link
Contributor Author

The point of this task is to adopt more precisely the tiered plugin system. Right now the implementation is slightly off and breaks a convention, this ticket aims at implementing an ideal state (see #166834 (comment)).
My opinion would be to park this for the moment and re-evaluate if the components in question need to be used by more consumers as it's only used by apm atm

@smith
Copy link
Contributor

smith commented Aug 26, 2024

IMO we should replace this table with some kind of "related entities" component and close anything related to this table that's not an immediate security risk.

@roshan-elastic
Copy link

Great - thanks all.

Playing this back:

  • We'll only prioritise updates to this table if there's a security risk
  • When we start looking at relationships between Hosts, Containers and Services - we can think about a new 'related entities' component (or something similar to that).

@jasonrhodes
Copy link
Member

jasonrhodes commented Aug 28, 2024

Thanks, @klacabane — so for extra clarity for everyone, this ticket isn't about any changes to the MetricsTable component itself but rather about how to organize any such components or packages that use data from the data access plugins. If this component is being "phased out" and is only used in one place, there's probably not much harm in leaving it as-is (although clearly marking it as not for future use would be nice). The most important thing is to evangelize how to best separate packages so they have as small of a chance as possible to introduce circular dependencies, which brings Great Pain to us all every day. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Metrics UI Metrics UI feature Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

No branches or pull requests

5 participants