Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct { // FlushInterval controls the time that the Output will buffer Metrics // before attempting to flatten them into a single Honeycomb event per // timestamp. See the documentation for Aggregate for more discussion. // // Default: 5 seconds. FlushInterval time.Duration // MaxBufferSize is the maximum number of Metrics we'll hold onto in memory // before initiating a flush. // // Default: 1000 MaxBufferSize int // DebugWriter has debug log messages written to it if set. // Useful for debugging usage inside of telegraf. // // Default: ioutil.Discard DebugWriter io.Writer // UnprefixedTags is the list of tags that will NOT be prefixed by the // associated metric name when constructing the Honeycomb field name. // // By default, every field and tag of a Metric are sent as a Honeycomb // field prefixed by the metric name. So a telegraf Metric like this: // { name=disk // tags={device:sda} fields={free:232827793}} // becomes two Honeycomb fields: "disk.device" and "disk.free". // // Exclude tags from this behavior by setting them in this list. // Any global tags should be included here. // // The "host" tag will always be treated as if it is included in this list. // (i.e., it is always sent as the field "host") UnprefixedTags []string // contains filtered or unexported fields }
func NewOutput ¶
func NewOutput(hnyClient *libhoney.Client) *Output
NewOutput returns an Output with default configuration.
Public fields can be updated with new configuration, but must be changed before calling Process().
Click to show internal directories.
Click to hide internal directories.