Skip to content
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 functions to implement Thanos Receive split functionality #244

Merged
merged 6 commits into from
Sep 1, 2021

Conversation

bill3tt
Copy link
Contributor

@bill3tt bill3tt commented Aug 26, 2021

This PR implements the Thanos Receive split functionality in kube-thanos.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Fixes #229

This PR adds a two new helper functions receiveRouter and receiveIngestor to the thanos.libsonnet library to implement the Thanos Receive split functionality.

NB: This was the first time I have properly used Jsonnet - and I had a horrible time. Therefore I've almost certainly broken unwritten rules and are generally holding it wrong. Please help correct anything that is egregiously wrong

Verification

  • Applied the generated manifests from example.jsonnet to a local kind cluster.
  • Used the up binary to remote write some data.
  • Verified that the data showed up in the Thanos Query UI.

@bill3tt bill3tt force-pushed the receiver-split branch 5 times, most recently from 190d606 to 9b963c2 Compare August 27, 2021 11:09
@bill3tt bill3tt changed the title Implement receiver split proposal Add functions to implement Thanos receiver split Aug 27, 2021
@bill3tt bill3tt changed the title Add functions to implement Thanos receiver split Add functions to implement Thanos Receive split proposal Aug 27, 2021
@bill3tt bill3tt marked this pull request as ready for review August 27, 2021 11:57
Signed-off-by: Ian Billett <ibillett@redhat.com>
Signed-off-by: Ian Billett <ibillett@redhat.com>
Signed-off-by: Ian Billett <ibillett@redhat.com>
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks, Ian.

I have added some suggestions.

manifests/thanos-query-deployment.yaml Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
example.jsonnet Outdated Show resolved Hide resolved
Signed-off-by: Ian Billett <ibillett@redhat.com>
Signed-off-by: Ian Billett <ibillett@redhat.com>
Signed-off-by: Ian Billett <ibillett@redhat.com>
@bill3tt
Copy link
Contributor Author

bill3tt commented Sep 1, 2021

Thanks for your speedy review @kakkoyun 🙌 I think I've addressed all the comments :)

@bill3tt bill3tt changed the title Add functions to implement Thanos Receive split proposal Add functions to implement Thanos Receive split Sep 1, 2021
@bill3tt bill3tt changed the title Add functions to implement Thanos Receive split Add functions to implement Thanos Receive split functionality Sep 1, 2021
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work!!!

@kakkoyun kakkoyun merged commit cfd8d78 into thanos-io:main Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add convenience functions for Thanos Receive to demonstrate separate Ingester and Router functionality
2 participants