-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[FLINK-2730][web-dashboard] Adds cpu and memory usage graphs. #1236
Conversation
Wow, the screenshots look super nice. 😄 Someone with knowledge about the new web fronted should probably review the code, though. |
Really cool graphs Sachin :-) Looking forward monitoring my Flink jobs with On Wed, Oct 7, 2015 at 3:10 PM, Aljoscha Krettek notifications@github.com
|
Thanks. :) |
@iampeter, could you please have a look so that we can quickly merge this? |
81b7f5b
to
46ca697
Compare
@aljoscha ok will do |
@sachingoel0101 @aljoscha looks great, but I would make the following changes if possible:
Thanks, |
Thanks for the review @iampeter 😄 |
@iampeter , thanks for the review. I've addressed all your comments. |
@aljoscha FYI I've added a new Job Manager message which returns the metrics only for one particular instance to minimize unnecessary traffic for a single taskmanager web page. That okay? |
I think I broke something while addressing Piotr's concerns. Will debug and push the fixed version again. Should be mergeable now. |
The screenshots look great. I'll check out your work now :) |
@@ -39,6 +42,7 @@ | |||
|
|||
private final FiniteDuration timeout; | |||
|
|||
private static final String taskManagerIDKey = "taskmanagerid"; |
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 is referencing your addition in WebRuntimeMonitor. You can use this constant there as well. I would furthermore use the constant field style a la "TASKMANAGER_ID_KEY".
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.
Pushed a fix.
sender ! decorateMessage( | ||
TaskManagerInstance(instanceManager.getRegisteredInstanceById(instanceID)) | ||
) | ||
|
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.
Wouldn't it be better to return an InstanceNotFound message instead of a null instance?
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 think using an Option makes more sense here.
Tried out your changes it everything worked without quirks. The initial look is a bit odd when the charts haven't loaded yet but this is nothing that should prevent us from merging the PR. I've also made a comment inline. +1 for merging |
The initial look is a bit weird, I agree. There is a potential fix, by fetching the usage upto the point when someone clicks on the |
@mxm I modified the code to remove null values. It should be mergeable now. |
Looks good to merge now. |
Build passes successfully. Looking forward to seeing this merged. :) |
Merging this after a final test... |
@@ -23,7 +23,8 @@ | |||
"dagre-d3": "~0.4.10", | |||
"font-awesome": "~4.3.0", | |||
"moment-duration-format": "~1.3.0", | |||
"qtip2": "~2.2.1" | |||
"qtip2": "~2.2.1", | |||
"highcharts-release": "~4.1.8" |
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 library's license is incompatible with the Apache License. Unfortunately, nobody noticed this. We will have to revert the merged changes...
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 apologize. It should've been my responsibility primarily.
I think I might be able to achieve the same graphs and live updates using d3
, which I assume is compatible. Working on it right now.
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.
Thanks! For now, we'll try to make a release without that page. We can add that back for 0.10.1 and 1.0
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.
Okay. I can a open a PR to minimally remove this functionality unless the commit needs to be completely reverted.
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 already working on a change to remove only the charts. Apparently, d3
would work for us because it is BSD-lincensed.
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.
Great. I'll start working on d3 based charts after you push your commit.
Screenshots:
I would really like to get this in the release. One more step towards removing the old frontend. :)