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

Cortex Exporter Send Pipeline #210

Merged
merged 6 commits into from
Aug 12, 2020
Merged

Cortex Exporter Send Pipeline #210

merged 6 commits into from
Aug 12, 2020

Conversation

ercl
Copy link
Contributor

@ercl ercl commented Aug 12, 2020

This PR implements the pipeline for sending data to Cortex. It includes functions for converting a slice of TimeSeries to a Snappy-compressed protocol buffer message, building a HTTP request, and sending the request to Cortex. Authentication will be added in a separate PR.

The design doc for the project can be found here: #188.

cc @alolita @connorlindsey

Copy link
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

Kudos for making the pieces of this new exporter easy to review.

}
exporter := Exporter{*test.config}

// Create an empty Snappy-compressed message.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd like to see a non-empty request and have the payload verified, but I expect you're planning that for a future PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I'm planning on adding that later. Thanks for the feedback!

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.

2 participants