-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
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.
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)?
openMetricsDetails() { | ||
const clusterMetricsLink = `${ window.location.origin }/c/${ this.$store.getters['clusterId'] }/explorer#cluster-events`; | ||
|
||
window.open(clusterMetricsLink, '_blank'); |
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.
this should use $router. also as we're in the dashboard context i think it's find to open in the same tab
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.
this one is still remaining to do
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>
@richard-cox thank for the heads up, I should have fixed everything. |
openMetricsDetails() { | ||
const clusterMetricsLink = `${ window.location.origin }/c/${ this.$store.getters['clusterId'] }/explorer#cluster-events`; | ||
|
||
window.open(clusterMetricsLink, '_blank'); |
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.
this one is still remaining to do
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Thanks @richard-cox , correct lat things.
probably an error with your GH view |
- use $router with location - don't attempt to fetch cluster metrics if in standalone mode
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.
I pushed two changes
- use $router with location
- don't attempt to fetch cluster metrics if in standalone mode (it'll never work there)
Summary
Fixes #270
Screenshots