Skip to content

Commit e6b8b3a

Browse files
committed
rename config option
1 parent 96892e3 commit e6b8b3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ type ClickHouse struct {
235235
IndexReverses IndexReverses `toml:"index-reverses" json:"index-reverses" comment:"see doc/config.md" commented:"true"`
236236
IndexTimeout time.Duration `toml:"index-timeout" json:"index-timeout" comment:"total timeout to fetch series list from index"`
237237
TaggedTable string `toml:"tagged-table" json:"tagged-table" comment:"'tagged' table from carbon-clickhouse, required for seriesByTag"`
238-
Tag1CountTable string `toml:"tag1-count-table" json:"tag1-count-table" comment:"Table that contains the amounts of rows with each tag1 value, used to determine which Tag1 value to use in a query based on its cardinality. If left empty, basic sorting will be used."`
238+
TagsCountTable string `toml:"tags-count-table" json:"tags-count-table" comment:"Table that contains the total amounts of each tag-value pair. It is used to avoid usage of high cardinality tag-value pairs when querying TaggedTable. If left empty, basic sorting will be used. See more detailed description in doc/config.md"`
239239
TaggedAutocompleDays int `toml:"tagged-autocomplete-days" json:"tagged-autocomplete-days" comment:"or how long the daemon will query tags during autocomplete"`
240240
TaggedUseDaily bool `toml:"tagged-use-daily" json:"tagged-use-daily" comment:"whether to use date filter when searching for the metrics in the tagged-table"`
241241
TaggedCosts map[string]*Costs `toml:"tagged-costs" json:"tagged-costs" comment:"costs for tags (for tune which tag will be used as primary), by default is 0, increase for costly (with poor selectivity) tags" commented:"true"`

finder/finder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func newPlainFinder(ctx context.Context, config *config.Config, query string, fr
4141
f = NewTagged(
4242
config.ClickHouse.URL,
4343
config.ClickHouse.TaggedTable,
44-
config.ClickHouse.Tag1CountTable,
44+
config.ClickHouse.TagsCountTable,
4545
config.ClickHouse.TaggedUseDaily,
4646
config.FeatureFlags.UseCarbonBehavior,
4747
config.FeatureFlags.DontMatchMissingTags,
@@ -148,7 +148,7 @@ func FindTagged(ctx context.Context, config *config.Config, terms []TaggedTerm,
148148
fnd := NewTagged(
149149
config.ClickHouse.URL,
150150
config.ClickHouse.TaggedTable,
151-
config.ClickHouse.Tag1CountTable,
151+
config.ClickHouse.TagsCountTable,
152152
config.ClickHouse.TaggedUseDaily,
153153
config.FeatureFlags.UseCarbonBehavior,
154154
config.FeatureFlags.DontMatchMissingTags,

0 commit comments

Comments
 (0)