Merge pull request #8812 from jjshanks/GH-8728

GH-8728 add raft default values
This commit is contained in:
Daniel Nephin 2021-05-18 15:32:37 -04:00 committed by hc-github-team-consul-core
parent 2f9c448801
commit ee992f788d
2 changed files with 6 additions and 0 deletions

3
.changelog/8812.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
api: include the default value of raft settings in the output of /v1/agent/self
```

View File

@ -122,6 +122,9 @@ func DefaultSource() Source {
metrics_prefix = "consul"
filter_default = true
}
raft_snapshot_threshold = ` + strconv.Itoa(int(cfg.RaftConfig.SnapshotThreshold)) + `
raft_snapshot_interval = "` + cfg.RaftConfig.SnapshotInterval.String() + `"
raft_trailing_logs = ` + strconv.Itoa(int(cfg.RaftConfig.TrailingLogs)) + `
`,
}