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

Node metrics integrations #290

Merged
merged 10 commits into from
Aug 21, 2023
Merged

Node metrics integrations #290

merged 10 commits into from
Aug 21, 2023

Conversation

torchiaf
Copy link
Contributor

@torchiaf torchiaf commented Aug 3, 2023

Summary

Fixes #270

Screenshots

image

@torchiaf torchiaf self-assigned this Aug 11, 2023
@torchiaf torchiaf marked this pull request as ready for review August 11, 2023 14:23
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
@torchiaf torchiaf changed the title Show node metrics Node metrics integrations Aug 11, 2023
Copy link
Member

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

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

I'm not sure we've got the UX right for this. Users might be ok with 5% of resources left and the warning then becomes an annoyance. Can we change it to a standard notification banner that's always shown (if embedded)?

dashboard/pkg/epinio/pages/c/_cluster/dashboard.vue Outdated Show resolved Hide resolved
openMetricsDetails() {
const clusterMetricsLink = `${ window.location.origin }/c/${ this.$store.getters['clusterId'] }/explorer#cluster-events`;

window.open(clusterMetricsLink, '_blank');
Copy link
Member

Choose a reason for hiding this comment

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

this should use $router. also as we're in the dashboard context i think it's find to open in the same tab

Copy link
Member

Choose a reason for hiding this comment

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

this one is still remaining to do

dashboard/pkg/epinio/l10n/en-us.yaml Outdated Show resolved Hide resolved
dashboard/pkg/epinio/pages/c/_cluster/dashboard.vue Outdated Show resolved Hide resolved
dashboard/pkg/epinio/types.ts Outdated Show resolved Hide resolved
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
@torchiaf
Copy link
Contributor Author

torchiaf commented Aug 17, 2023

@richard-cox thank for the heads up, I should have fixed everything.
This is how it looks like at the end:

image

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
dashboard/pkg/epinio/store/epinio-store/actions.ts Outdated Show resolved Hide resolved
openMetricsDetails() {
const clusterMetricsLink = `${ window.location.origin }/c/${ this.$store.getters['clusterId'] }/explorer#cluster-events`;

window.open(clusterMetricsLink, '_blank');
Copy link
Member

Choose a reason for hiding this comment

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

this one is still remaining to do

@richard-cox richard-cox added this to the v1.10.0 milestone Aug 21, 2023
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
@torchiaf
Copy link
Contributor Author

torchiaf commented Aug 21, 2023

Thanks @richard-cox , correct lat things.
This was already fixed in the previous round:

window.open(clusterMetricsLink, '_blank');

probably an error with your GH view

- use $router with location
- don't attempt to fetch cluster metrics if in standalone mode
Copy link
Member

@richard-cox richard-cox left a comment

Choose a reason for hiding this comment

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

I pushed two changes

  • use $router with location
  • don't attempt to fetch cluster metrics if in standalone mode (it'll never work there)

@torchiaf torchiaf merged commit 6e50a1e into epinio:main Aug 21, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui] Embedded - Show charts based on Kube metric server resources
2 participants