-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
cleaning up and improving function metrics #2994
cleaning up and improving function metrics #2994
Conversation
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.
👍
rerun integration tests |
@@ -537,6 +454,223 @@ private void stopFunction(String fullyQualifiedInstanceId, boolean restart) thro | |||
} | |||
} | |||
|
|||
/** |
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.
For all new functionality, could we collapse getInstanceStats and getFunctionStats into one implementation? I see a lot of duplicate code
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.
Can't really combine those two function since getFunctionInstanceStats returns the stats for instance with getFunctionStats returns stats overall and for all instances. Different objects are returned. What can be refactored / combined is the logic between the get stats functions and get status functions. I didn't want to refactor the logic there since there are already many changes in this PR as it is.
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.
sounds good
a1b3b30
to
756d595
Compare
Motivation
Cleaning up and improving metrics collection and presentation for functions
Modifications
for example:
and for instances:
Getting all function stats on worker:
Next step in improving metrics, will be to add some system stats that are time windowed
FYI this PR overlaps with #2982