Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDataToOpenTSDB ¶
func WriteDataToOpenTSDB(mo *OpenTsdbOutput)
Types ¶
type OpenTsdbEncoder ¶
type OpenTsdbEncoder struct {
*OpenTsdbEncoderConfig
}
func (*OpenTsdbEncoder) ConfigStruct ¶
func (e *OpenTsdbEncoder) ConfigStruct() interface{}
func (*OpenTsdbEncoder) Encode ¶
func (e *OpenTsdbEncoder) Encode(pack *PipelinePack) (output []byte, err error)
func (*OpenTsdbEncoder) Init ¶
func (e *OpenTsdbEncoder) Init(config interface{}) (err error)
type OpenTsdbEncoderConfig ¶
type OpenTsdbEncoderConfig struct { //the decode method, there are three methods:"json","bson","raw", //json decode message use Tags config and Value config //bson decode as json but treat payload as bson object //raw decode value from payload and tags from message Decode string Tags []string Values []string //the metric root Metric string TagIfEmpty map[string]string `toml:"tag_for_empty"` }
type OpenTsdbOutput ¶
type OpenTsdbOutput struct { *OpenTsdbOutputConfig // contains filtered or unexported fields }
func (*OpenTsdbOutput) ConfigStruct ¶
func (o *OpenTsdbOutput) ConfigStruct() interface{}
func (*OpenTsdbOutput) Init ¶
func (o *OpenTsdbOutput) Init(config interface{}) (err error)
func (*OpenTsdbOutput) Run ¶
func (o *OpenTsdbOutput) Run(or pipeline.OutputRunner, h pipeline.PluginHelper) (err error)
func (*OpenTsdbOutput) SendDataPoints ¶
Click to show internal directories.
Click to hide internal directories.