mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
match fileSDCheckInterval with prometheus file_sd_config default (#2188)
This commit is contained in:
parent
e29b2b8444
commit
ad6bdd78d0
2 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ func (sc *ScrapeConfig) mustStop() {
|
|||
// See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config
|
||||
type FileSDConfig struct {
|
||||
Files []string `yaml:"files"`
|
||||
// `refresh_interval` is ignored. See `-prometheus.fileSDCheckInterval`
|
||||
// `refresh_interval` is ignored. See `-promscrape.fileSDCheckInterval`
|
||||
}
|
||||
|
||||
// StaticConfig represents essential parts for `static_config` section of Prometheus config.
|
||||
|
|
|
@ -35,7 +35,7 @@ var (
|
|||
"The path can point to local file and to http url. "+
|
||||
"See https://docs.victoriametrics.com/#how-to-scrape-prometheus-exporters-such-as-node-exporter for details")
|
||||
|
||||
fileSDCheckInterval = flag.Duration("promscrape.fileSDCheckInterval", 30*time.Second, "Interval for checking for changes in 'file_sd_config'. "+
|
||||
fileSDCheckInterval = flag.Duration("promscrape.fileSDCheckInterval", 5*time.Minute, "Interval for checking for changes in 'file_sd_config'. "+
|
||||
"See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config for details")
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue