Skip to content

Commit

Permalink
chore: enable metadata_refresh by default (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl authored Jan 15, 2025
1 parent 29f80e7 commit 979359d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/elastic/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ var (
Interval: "10s",
},
MetadataRefresh: common.CheckConfig{
Enabled: false,
Interval: "10s",
Enabled: true,
Interval: "30s",
},
ORMConfig: common.ORMConfig{
Enabled: false,
Expand Down Expand Up @@ -685,6 +685,9 @@ func (module *ElasticModule) refreshAllClusterMetadata() {
}

v, ok := value.(*elastic.ElasticsearchMetadata)

log.Trace("update elasticsearch's metadata:", v, ok)

if ok {
module.updateNodeInfo(v, false, v.Config.Discovery.Enabled)
}
Expand Down

0 comments on commit 979359d

Please sign in to comment.