fix settings output, recursively determine the json path of settings

This commit is contained in:
2026-05-11 10:22:17 +02:00
parent 3bd26fde7a
commit d22352da12
2 changed files with 4 additions and 94 deletions

View File

@@ -30,6 +30,10 @@ import (
"github.com/elastic/go-elasticsearch/v9/typedapi/types"
)
const (
DefaultExclude = `(part|monitoring|.internal|metrics-endpoint)`
)
func checkClusterFollower(conf *cfg.Config, leader string) bool {
stats, err := conf.Clusters[leader].ES.Ccr.Stats().
Header("content-type", "application/json").