Documentation ¶
Index ¶
- func AddConfig(name string, config map[string]interface{})
- func AddTags(name string, tags []string)
- func AddUsage(name, usage string)
- func GetConfigByName(name string) map[string]interface{}
- func GetTagsByName(name string) []string
- func GetUsageByName(name string) string
- type Accumulator
- func (acc *Accumulator) AddCounter(measurement string, fields map[string]interface{}, tags map[string]string, ...)
- func (acc *Accumulator) AddError(err error)
- func (acc *Accumulator) AddFields(measurement string, fields map[string]interface{}, tags map[string]string, ...)
- func (acc *Accumulator) AddGauge(measurement string, fields map[string]interface{}, tags map[string]string, ...)
- func (acc *Accumulator) AddHistogram(measurement string, fields map[string]interface{}, tags map[string]string, ...)
- func (acc *Accumulator) AddMetric(telegraf.Metric)
- func (acc *Accumulator) AddSummary(measurement string, fields map[string]interface{}, tags map[string]string, ...)
- func (_ *Accumulator) SetPrecision(precision time.Duration)
- func (acc *Accumulator) WithTracking(maxTracked int) telegraf.TrackingAccumulator
- type Collector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigByName ¶
GetConfigByName returns config information specific to logkit.
func GetTagsByName ¶
GetTagsByName returns tags information specific to logkit.
func GetUsageByName ¶
GetUsageByName returns usage information specific to logkit.
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
Accumulator implements telegraf.Accumulator.
func (*Accumulator) AddCounter ¶
func (*Accumulator) AddError ¶
func (acc *Accumulator) AddError(err error)
func (*Accumulator) AddHistogram ¶
func (*Accumulator) AddMetric ¶ added in v1.5.4
func (acc *Accumulator) AddMetric(telegraf.Metric)
mock AddMetric. Implement when needed
func (*Accumulator) AddSummary ¶
func (*Accumulator) SetPrecision ¶
func (_ *Accumulator) SetPrecision(precision time.Duration)
func (*Accumulator) WithTracking ¶ added in v1.5.4
func (acc *Accumulator) WithTracking(maxTracked int) telegraf.TrackingAccumulator
mock WithTracking. Implement when needed
type Collector ¶
Collector converts inputs.Input to logkit format and implements metric.Collector.
func NewCollector ¶
NewCollector creates new general collector.
Click to show internal directories.
Click to hide internal directories.