Skip to content

Commit

Permalink
[jmx] fix configuration name typo for jmx_restart_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Jan 16, 2019
1 parent 1aebc81 commit ee36911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func initConfig(config Config) {
config.BindEnvAndSetDefault("jmx_custom_jars", []string{})
config.BindEnvAndSetDefault("jmx_use_cgroup_memory_limit", false)
config.BindEnvAndSetDefault("jmx_max_restarts", int64(3))
config.BindEnvAndSetDefault("jmx_max_restart_interval", int64(5))
config.BindEnvAndSetDefault("jmx_restart_interval", int64(5))

// Go_expvar server port
config.BindEnvAndSetDefault("expvar_port", "5000")
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ api_key:
# Number of JMX restarts allowed in the restart-interval before giving up
# jmx_max_restarts: 3
#
# Duration of the restart interval in secons
# jmx_max_restart_interval: 5
# Duration of the restart interval in seconds
# jmx_restart_interval: 5
#
#
{{ end -}}
Expand Down

0 comments on commit ee36911

Please sign in to comment.