diff --git a/.changelog/8812.txt b/.changelog/8812.txt new file mode 100644 index 0000000000..0393c7166d --- /dev/null +++ b/.changelog/8812.txt @@ -0,0 +1,3 @@ +```release-note:bug +api: include the default value of raft settings in the output of /v1/agent/self +``` diff --git a/agent/config/default.go b/agent/config/default.go index 347bc09c28..fd8146a598 100644 --- a/agent/config/default.go +++ b/agent/config/default.go @@ -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)) + ` `, }