Fix regression from #1957, specify non-zero default timeout. (#2121)

Fixes #2075
This commit is contained in:
Brian Brazil 2016-10-26 14:47:41 +01:00 committed by GitHub
parent 233a25a060
commit 6bc29ba857
1 changed files with 5 additions and 0 deletions

View File

@ -213,6 +213,11 @@ func init() {
"The name of the database to use for storing samples in InfluxDB.",
)
cfg.fs.DurationVar(
&cfg.remote.StorageTimeout, "storage.remote.timeout", 30*time.Second,
"The timeout to use when sending samples to the remote storage.",
)
// Alertmanager.
cfg.fs.Var(
&cfg.alertmanagerURLs, "alertmanager.url",