Skip to content

Commit

Permalink
Increase metrics default report frequency to 60sec.
Browse files Browse the repository at this point in the history
  • Loading branch information
mofirouz committed Nov 11, 2018
1 parent 364b714 commit 60dc264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- New default for maximum number of open database connections.
- Friend state indicators are no longer offset when sent to clients.
- Group state indicators are no longer offset when sent to clients.
- Increased metrics default report frequency to 60sec.

### Fixed
- Correctly handle optional parameters in runtime functions to update account information.
Expand Down
4 changes: 2 additions & 2 deletions server/config.go
Expand Up @@ -317,7 +317,7 @@ func NewLoggerConfig() *LoggerConfig {

// MetricsConfig is configuration relevant to metrics capturing and output.
type MetricsConfig struct {
ReportingFreqSec int `yaml:"reporting_freq_sec" json:"reporting_freq_sec" usage:"Frequency of metrics exports. Default is 10 seconds."`
ReportingFreqSec int `yaml:"reporting_freq_sec" json:"reporting_freq_sec" usage:"Frequency of metrics exports. Default is 60 seconds."`
StackdriverProjectID string `yaml:"stackdriver_projectid" json:"stackdriver_projectid" usage:"This is the identifier of the Stackdriver project the server is uploading the stats data to. Setting this enables metrics to be exported to Stackdriver."`
Namespace string `yaml:"namespace" json:"namespace" usage:"Namespace for Prometheus or prefix for Stackdriver metrics. It will always prepend node name."`
PrometheusPort int `yaml:"prometheus_port" json:"prometheus_port" usage:"Port to expose Prometheus. If '0' Prometheus exports are disabled."`
Expand All @@ -326,7 +326,7 @@ type MetricsConfig struct {
// NewMetricsConfig creates a new MatricsConfig struct.
func NewMetricsConfig() *MetricsConfig {
return &MetricsConfig{
ReportingFreqSec: 10,
ReportingFreqSec: 60,
StackdriverProjectID: "",
Namespace: "",
PrometheusPort: 0,
Expand Down

0 comments on commit 60dc264

Please sign in to comment.