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

Simplify and fix remote write example #2053

Merged
merged 1 commit into from
Oct 5, 2016
Merged

Conversation

juliusv
Copy link
Member

@juliusv juliusv commented Oct 5, 2016

After removing gRPC, this can be simplified again. Also, the
configuration for the remote storage moved from flags to the config
file.

@juliusv
Copy link
Member Author

juliusv commented Oct 5, 2016

@brian-brazil

// AppenderHandler returns a http.Handler that accepts proto encoded samples.
func AppenderHandler(s WriteServer) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.HandleFunc("/push", func(w http.ResponseWriter, r *http.Request) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would /receive be better?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to /receive.

@brian-brazil
Copy link
Contributor

👍

After removing gRPC, this can be simplified again. Also, the
configuration for the remote storage moved from flags to the config
file.
@juliusv juliusv force-pushed the fix-remote-write-example branch from 3c2f63e to b516335 Compare October 5, 2016 15:53
@juliusv juliusv merged commit ee8e8d1 into master Oct 5, 2016
@juliusv juliusv deleted the fix-remote-write-example branch October 5, 2016 15:53
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