diff --git a/docs/content.en/docs/release-notes/_index.md b/docs/content.en/docs/release-notes/_index.md index c66738706..0cfd05903 100644 --- a/docs/content.en/docs/release-notes/_index.md +++ b/docs/content.en/docs/release-notes/_index.md @@ -14,6 +14,7 @@ Information about release notes of INFINI Framework is provided here. ### Features ### Bug fix +- Fix incorrect interval configuration in index stats collection task (#80) ### Improvements diff --git a/modules/metrics/elastic/elasticsearch.go b/modules/metrics/elastic/elasticsearch.go index cbe577475..beb255049 100644 --- a/modules/metrics/elastic/elasticsearch.go +++ b/modules/metrics/elastic/elasticsearch.go @@ -331,7 +331,7 @@ func (m *ElasticsearchMetric) InitialCollectTask(k string, v *elastic.Elasticsea ID: indexStatsTaskID, Description: fmt.Sprintf("monitoring index stats metric for cluster %s", k), Type: "interval", - Interval: monitorConfigs.ClusterStats.Interval, + Interval: monitorConfigs.IndexStats.Interval, Singleton: true, Task: func(ctx context.Context) { if !v.IsAvailable() {