Skip to content

Commit

Permalink
Changed default fileSD interval to 5m
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Valkov committed Oct 16, 2018
1 parent 3b4a622 commit 3e4abbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/thanos/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func registerRule(m map[string]setupFunc, app *kingpin.Application, name string)
PlaceHolder("<path>").Strings()

fileSDInterval := modelDuration(cmd.Flag("query.file-sd-config.interval", "Refresh interval to re-read file SD files. (used as a fallback)").
Default("5s"))
Default("5m"))

m[name] = func(g *run.Group, logger log.Logger, reg *prometheus.Registry, tracer opentracing.Tracer, _ bool) error {
lset, err := parseFlagLabels(*labelStrs)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Flags:
Path to file that contain addresses of query
peers. The path can be a glob pattern
(repeatable).
--query.file-sd-config.interval=5s
--query.file-sd-config.interval=5m
Refresh interval to re-read file SD files.
(used as a fallback)

Expand Down

0 comments on commit 3e4abbd

Please sign in to comment.