-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Add metrics #655
Add metrics #655
Conversation
executor.go
Outdated
@@ -23,6 +23,7 @@ type executor struct { | |||
limitMode *limitModeConfig | |||
elector Elector | |||
locker Locker | |||
monitorer Monitorer |
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.
monitorer Monitorer | |
monitor Monitor |
metrics.go
Outdated
// Monitorer represents the interface to collect jobs metrics. | ||
type Monitorer interface { |
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 you make this just Monitor
throughout?
// Monitorer represents the interface to collect jobs metrics. | |
type Monitorer interface { | |
// Monitor represents the interface to collect jobs metrics. | |
type Monitor interface { |
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.
Sure, done
What does this do?
Add interface for collect jobs execution metrics: counter, time elapsed
Which issue(s) does this PR fix/relate to?
Resolves #317
List any changes that modify/break current functionality
Have you included tests for your changes?
Yes, tests for counter was added
Did you document any new/modified functionality?
example_test.go
README.md
Notes