Add http path configuration for OpenTSDB output (#4347)
This commit is contained in:
committed by
Daniel Nelson
parent
9bc63c2f7a
commit
c7cfc2ec39
@@ -26,6 +26,7 @@ type openTSDBHttp struct {
|
||||
Scheme string
|
||||
User *url.Userinfo
|
||||
BatchSize int
|
||||
Path string
|
||||
Debug bool
|
||||
|
||||
metricCounter int
|
||||
@@ -123,7 +124,7 @@ func (o *openTSDBHttp) flush() error {
|
||||
Scheme: o.Scheme,
|
||||
User: o.User,
|
||||
Host: fmt.Sprintf("%s:%d", o.Host, o.Port),
|
||||
Path: "/api/put",
|
||||
Path: o.Path,
|
||||
}
|
||||
|
||||
if o.Debug {
|
||||
|
||||
Reference in New Issue
Block a user