mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
match fileSDCheckInterval with prometheus file_sd_config default (#2188)
This commit is contained in:
parent
3458a3d593
commit
cf8df24227
@ -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 New Issue
Block a user