-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pkg/receive: enable forwarding metrics #1243
Conversation
This commit renames `host` to `node` in the context of the receive hashring. This is because more often than not, the hashring will deal with endpoints rather than simply hosts and node is a more generic term for the operand of a hashring.
cc @brancz @metalmatze @bwplotka I addressed the comments you made the first time around so this is now ready for another round 💪 |
We had some offline discussion to change this implementation a little bit. The revised version should actually be significantly simpler. |
0c187d6
to
2ae5ba7
Compare
@brancz all the changes we talked about today are in now. The configuration management is much simpler for hashrings now 😌. We have some boilerplate for creating a configuration file watcher, but it is sane and self-contained. |
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.
Really nice! It think we're getting close!
388ffa4
to
251a6da
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.
Just the comment about the matcher, and metrics, then this lgtm. Nice work!
4122ee4
to
acc7290
Compare
This commit enables metrics forwarding from one receive node to another. The receive nodes construct hashrings from the given sd-files and use these hashrings to select a node to which toforward a given time series. Time series are batched together to ensure that for any incoming write-request to a node, at most one outgoing write-request will be made every other node in the hashring.
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 bearing with me. This is now significantly simpler and more sound than what we started with. Really happy with the result. Nice job! 👍
This PR enables metrics forwarding from one receive node to another.
The receive nodes construct hashrings from the given sd-files and
use these hashrings to select a node to which to forward a given time
series. Time series are batched together to ensure that for any incoming
write-request to a node, at most one outgoing write-request will be made
every other node in the hashring.
Changes
Verification
Added e2e tests for receive nodes in hashring
cc @brancz @bwplotka @metalmatze