internal.Duration build fixup

This commit is contained in:
Cameron Sparr 2016-12-17 13:10:33 +00:00
parent f09c08d1f3
commit e36c354ff5
No known key found for this signature in database
GPG Key ID: 19E67263DCB25D0F
1 changed files with 1 additions and 1 deletions

View File

@ -153,6 +153,6 @@ func (p *Prometheus) gatherURL(url string, acc telegraf.Accumulator) error {
func init() {
inputs.Add("prometheus", func() telegraf.Input {
return &Prometheus{ResponseTimeout: "3s"}
return &Prometheus{ResponseTimeout: internal.Duration{Duration: time.Second * 3}}
})
}