Set metrics reporting interval to 9 seconds

This is below the 10 second interval that lib/telemetry.go implements as
its aggregation interval, ensuring that we always report these metrics.
This commit is contained in:
Chris Piraino 2020-09-02 10:24:23 -05:00
parent a3028cad89
commit bcb586bee2
1 changed files with 4 additions and 1 deletions

View File

@ -593,9 +593,12 @@ func DefaultConfig() *Config {
}, },
}, },
// Stay under the 10 second aggregation interval of
// go-metrics. This ensures we always report the
// usage metrics in each cycle.
MetricsReportingInterval: 9 * time.Second,
ServerHealthInterval: 2 * time.Second, ServerHealthInterval: 2 * time.Second,
AutopilotInterval: 10 * time.Second, AutopilotInterval: 10 * time.Second,
MetricsReportingInterval: 10 * time.Second,
DefaultQueryTime: 300 * time.Second, DefaultQueryTime: 300 * time.Second,
MaxQueryTime: 600 * time.Second, MaxQueryTime: 600 * time.Second,