Documentation ¶
Index ¶
- type ClickHouse
- func (ch *ClickHouse) Close() error
- func (ch *ClickHouse) Connect() error
- func (ch *ClickHouse) Init() error
- func (*ClickHouse) SampleConfig() string
- func (ch *ClickHouse) Write(metrics []telegraf.Metric) error
- func (ch *ClickHouse) WriteMultiTable(metrics []telegraf.Metric) error
- func (ch *ClickHouse) WriteSingleTable(metrics []telegraf.Metric) error
- type MultiTableOptions
- type SingleTableOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickHouse ¶
type ClickHouse struct { DataSourceName string `toml:"data_source_name"` InitSQL string `toml:"init_sql"` TimestampColumn string `toml:"timestamp_column"` TTL string `toml:"ttl"` TableMode string `toml:"table_mode"` SingleTableOptions SingleTableOptions `toml:"single_table"` MultiTableOptions MultiTableOptions `toml:"multi_table"` QueueInitialSize int `toml:"queue_initial_size"` QueueMaxSize int `toml:"queue_max_size"` QueueFlushSize int `toml:"queue_flush_size"` QueueFlushInterval time.Duration `toml:"queue_flush_interval"` ConnectionMaxIdleTime time.Duration `toml:"connection_max_idle_time"` ConnectionMaxLifetime time.Duration `toml:"connection_max_lifetime"` ConnectionMaxIdle int `toml:"connection_max_idle"` ConnectionMaxOpen int `toml:"connection_max_open"` Log telegraf.Logger // contains filtered or unexported fields }
func (*ClickHouse) Close ¶
func (ch *ClickHouse) Close() error
func (*ClickHouse) Connect ¶
func (ch *ClickHouse) Connect() error
func (*ClickHouse) Init ¶
func (ch *ClickHouse) Init() error
func (*ClickHouse) SampleConfig ¶
func (*ClickHouse) SampleConfig() string
func (*ClickHouse) WriteMultiTable ¶
func (ch *ClickHouse) WriteMultiTable(metrics []telegraf.Metric) error
func (*ClickHouse) WriteSingleTable ¶
func (ch *ClickHouse) WriteSingleTable(metrics []telegraf.Metric) error
type MultiTableOptions ¶
type MultiTableOptions struct {
TablePrefix string `toml:"table_prefix"`
}
type SingleTableOptions ¶
type SingleTableOptions struct {
TableName string `toml:"table_name"`
}
Click to show internal directories.
Click to hide internal directories.