diff --git a/lib/promscrape/config.go b/lib/promscrape/config.go index e74cea346d..d30b178e69 100644 --- a/lib/promscrape/config.go +++ b/lib/promscrape/config.go @@ -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. diff --git a/lib/promscrape/scraper.go b/lib/promscrape/scraper.go index d02c09b5ce..c5a3e8f12d 100644 --- a/lib/promscrape/scraper.go +++ b/lib/promscrape/scraper.go @@ -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") )