Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggingConfig ¶ added in v0.3.2
Types ¶
type Carbonlink ¶ added in v0.4.0
type ClickHouse ¶
type ClickHouse struct { Url string `toml:"url"` DataTable string `toml:"data-table"` DataTimeout *Duration `toml:"data-timeout"` TreeTable string `toml:"tree-table"` DateTreeTable string `toml:"date-tree-table"` DateTreeTableVersion int `toml:"date-tree-table-version"` TaggedTable string `toml:"tagged-table"` ReverseTreeTable string `toml:"reverse-tree-table"` TreeTimeout *Duration `toml:"tree-timeout"` TagTable string `toml:"tag-table"` RollupConf string `toml:"rollup-conf"` ExtraPrefix string `toml:"extra-prefix"` }
type Common ¶
type Common struct { Listen string `toml:"listen"` // MetricPrefix string `toml:"metric-prefix"` // MetricInterval *Duration `toml:"metric-interval"` // MetricEndpoint string `toml:"metric-endpoint"` MaxCPU int `toml:"max-cpu"` TargetBlacklist []string `toml:"target-blacklist"` Blacklist []*regexp.Regexp `toml:"-"` // compiled TargetBlacklist }
type Config ¶
type Config struct { Common Common `toml:"common"` ClickHouse ClickHouse `toml:"clickhouse"` DataTable []DataTable `toml:"data-table"` Tags Tags `toml:"tags"` Carbonlink Carbonlink `toml:"carbonlink"` Logging []zapwriter.Config `toml:"logging"` Rollup *rollup.Rollup `toml:"-"` }
Config ...
type DataTable ¶ added in v0.4.0
type DataTable struct { Table string `toml:"table"` Reverse bool `toml:"reverse"` MaxAge *Duration `toml:"max-age"` MinAge *Duration `toml:"min-age"` MaxInterval *Duration `toml:"max-interval"` MinInterval *Duration `toml:"min-interval"` TargetMatchAny string `toml:"target-match-any"` TargetMatchAll string `toml:"target-match-all"` TargetMatchAnyRegexp *regexp.Regexp `toml:"-"` TargetMatchAllRegexp *regexp.Regexp `toml:"-"` }
type Duration ¶
Duration wrapper time.Duration for TOML
func (*Duration) MarshalText ¶
MarshalText encode text with TOML format
func (*Duration) UnmarshalText ¶
UnmarshalText from TOML
Click to show internal directories.
Click to hide internal directories.