-
Notifications
You must be signed in to change notification settings - Fork 108
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 ability to send remote write 2.0 requests #124
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Saswata Mukherjee <[email protected]>
metrics/write.go
Outdated
switch ts := any(tss).(type) { | ||
case []*writev2.TimeSeries: | ||
req = any(&writev2.Request{ | ||
Timeseries: ts[i:end], | ||
Symbols: st.Symbols(), | ||
}).(R) |
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 looks scary xD
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.
Yeah was experimenting. Generics work, but result in super tricky code. I'll revert back to what I had initially
Signed-off-by: Saswata Mukherjee <[email protected]>
Signed-off-by: Saswata Mukherjee <[email protected]>
timeout: time.Minute, | ||
config: cfg, | ||
gatherer: gatherer, | ||
client: httpClient, |
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.
Can we rm this?
if err != nil { | ||
return err | ||
} | ||
|
||
client := Client{ |
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.
Should we create this once in avalanche?
merr.Add(err) | ||
c.logger.Error("error writing metrics", "error", err) |
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.
Should we log this downstream (when we handle merr?)
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.
👍🏽
Based on client_golang remote write 2.0 PR