diff --git a/remote_write.go b/remote_write.go index cda9a66..6af525a 100644 --- a/remote_write.go +++ b/remote_write.go @@ -257,6 +257,9 @@ func (c *Client) send(state *lib.State, req []byte) (httpext.Response, error) { for k, v := range c.cfg.Headers { r.Header.Set(k, v) + if k == "Host" { + r.Host = v + } } // explicit config overwrites any previously set matching headers