-
Notifications
You must be signed in to change notification settings - Fork 604
Add label for ping msg; config memberlist metrics label #654
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
Conversation
|
Might want to rebase this on the other PR so the tests run. |
9123e0f to
d392b06
Compare
308bdcd to
650720c
Compare
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.
Some comments on API backwards compatibility
| // basic testing of the algorithm, but not tuned to any particular type of cluster. | ||
| func DefaultConfig() *Config { | ||
| func DefaultConfig(metricLabels []metrics.Label) *Config { | ||
| return &Config{ |
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 would break backwards compatibility. Either add a new function or elect to post-creation edit the returned value to set the metrics field
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.
fixed
serf/snapshot.go
Outdated
| clock *LamportClock, | ||
| outCh chan<- Event, | ||
| shutdownCh <-chan struct{}) (chan<- Event, *Snapshotter, error) { | ||
| shutdownCh <-chan struct{}, metricLabels []metrics.Label) (chan<- Event, *Snapshotter, error) { |
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 breaks compatibility for the library function. We'll need a new function to pass the labels
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.
fixed
3c52791 to
109a283
Compare
Based off branch metrics-label-backport
Add labels to ping metrics
Pass metrics label to memberlist
some sample output