config

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport_file

type Transport_file struct {
	Enabled        bool   `json:"enabled"`
	Flush_Interval string `json:"flush_interval"`
	Path           string `json:"path"`

	// TODO: max_size, max_rotation
	Max_size     int `json:"max_size"`
	Max_rotation int `json:"max_rotation"`
}

type Transport_influxdb

type Transport_influxdb struct {
	Version        string
	Interval       string
	Max_batch_size int

	// Client Config
	Host     string // for v0.8.8
	URL      string // for v0.9.0
	Username string
	Password string
	Database string

	// Write Config
	RetentionPolicy string
	FlatTemplate    string

	Backfill_enabled              bool
	Backfill_interval             string
	Backfill_handsoff             bool
	Backfill_latency_threshold_ms int
	Backfill_cool_down            string

	Merge_Requests bool // try best to merge small group of points to no more than max_batch_size
}

type Transport_kafka added in v0.2.1

type Transport_kafka struct {
	Broker_list        []string `json:"broker_list"`        // ["localhost:xxx", "remote:xxx"]
	Topic_id           string   `json:"topic_id"`           //
	Compression_codec  string   `json:"compression_codec"`  // none, gzip or snappy
	Ack_timeout_ms     int      `json:"ack_timeout_ms"`     // milliseconds
	Required_acks      string   `json:"required_acks"`      // no_response, wait_for_local, wait_for_all
	Flush_frequency_ms int      `json:"flush_frequency_ms"` // milliseconds
	Write_timeout      string   `json:"write_timeout"`      // string, 100ms, 1s, default 1s
	Dail_timeout       string   `json:"dail_timeout"`       // string, 100ms, 1s, default 5s
	Keepalive          string   `json:"keepalive"`          // string, 100ms, 1s, 0 to disable it. default 30s
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL