Output openTSDB HTTPS with basic auth (#1913)
This commit is contained in:
committed by
Cameron Sparr
parent
6e241611be
commit
7558081873
@@ -23,6 +23,8 @@ type HttpMetric struct {
|
||||
type openTSDBHttp struct {
|
||||
Host string
|
||||
Port int
|
||||
Scheme string
|
||||
User *url.Userinfo
|
||||
BatchSize int
|
||||
Debug bool
|
||||
|
||||
@@ -118,7 +120,8 @@ func (o *openTSDBHttp) flush() error {
|
||||
o.body.close()
|
||||
|
||||
u := url.URL{
|
||||
Scheme: "http",
|
||||
Scheme: o.Scheme,
|
||||
User: o.User,
|
||||
Host: fmt.Sprintf("%s:%d", o.Host, o.Port),
|
||||
Path: "/api/put",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user