Add http path configuration for OpenTSDB output (#4347)

This commit is contained in:
Jacob Lisi
2018-07-02 18:04:01 -04:00
committed by Daniel Nelson
parent 9bc63c2f7a
commit c7cfc2ec39
4 changed files with 15 additions and 1 deletions

View File

@@ -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 {