Skip to content

Commit

Permalink
add new fields to config.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukanov-as committed Dec 26, 2023
1 parent aad3e13 commit da889a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ type Tags struct {
ExtraWhere string `toml:"extra-where" json:"extra-where"`
InputFile string `toml:"input-file" json:"input-file"`
OutputFile string `toml:"output-file" json:"output-file"`
Threads int `toml:"threads" json:"threads"`
Compression clickhouse.ContentEncoding `toml:"compression" json:"compression"` // "none", "gzip" (default), "zstd"
Version uint32 `toml:"version" json:"version"` // for testing purposes
SelectChunksCount int `toml:"select-chunks-count" json:"select-chunks-count"`
Threads int `toml:"threads" json:"threads" comment:"number of threads for uploading tags to clickhouse (1 by default)"`
Compression clickhouse.ContentEncoding `toml:"compression" json:"compression" comment:"compression method for tags before sending them to clickhouse (i.e. content encoding): gzip (default), none, zstd"`
Version uint32 `toml:"version" json:"version" comment:"fixed tags version for testing purposes (by default the current timestamp is used for each upload)"`
SelectChunksCount int `toml:"select-chunks-count" json:"select-chunks-count" comment:"number of chunks for selecting metrics from clickhouse (10 by default)"`
}

// Carbonlink configuration
Expand Down
8 changes: 8 additions & 0 deletions doc/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,14 @@ Only one tag used as filter for index field Tag1, see graphite_tagged table [str
# extra-where = ""
# input-file = ""
# output-file = ""
# number of threads for uploading tags to clickhouse (1 by default)
# threads = 1
# compression method for tags before sending them to clickhouse (i.e. content encoding): gzip (default), none, zstd
# compression = "gzip"
# fixed tags version for testing purposes (by default the current timestamp is used for each upload)
# version = 0
# number of chunks for selecting metrics from clickhouse (10 by default)
# select-chunks-count = 0

[carbonlink]
server = ""
Expand Down

0 comments on commit da889a4

Please sign in to comment.