mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Increase default retry interval for file SD
The automatic refresh is a safety mechanism in case file watches fail. As they seem to be working well the interval can be increased.
This commit is contained in:
parent
4ee88017f3
commit
139f27bf8a
|
@ -91,7 +91,7 @@ var (
|
||||||
|
|
||||||
// The default file SD configuration.
|
// The default file SD configuration.
|
||||||
DefaultFileSDConfig = FileSDConfig{
|
DefaultFileSDConfig = FileSDConfig{
|
||||||
RefreshInterval: Duration(30 * time.Second),
|
RefreshInterval: Duration(5 * time.Minute),
|
||||||
}
|
}
|
||||||
|
|
||||||
// The default Consul SD configuration.
|
// The default Consul SD configuration.
|
||||||
|
|
|
@ -65,7 +65,7 @@ var expectedConf = &Config{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Names: []string{"bar/*.yaml"},
|
Names: []string{"bar/*.yaml"},
|
||||||
RefreshInterval: Duration(30 * time.Second),
|
RefreshInterval: Duration(5 * time.Minute),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue