Documentation ¶
Index ¶
- type TemplateMetric
- func (m *TemplateMetric) Field(key string) interface{}
- func (m *TemplateMetric) FieldList() map[string]interface{}
- func (m *TemplateMetric) Fields() map[string]interface{}
- func (m *TemplateMetric) Name() string
- func (m *TemplateMetric) String() string
- func (m *TemplateMetric) Tag(key string) string
- func (m *TemplateMetric) TagList() map[string]string
- func (m *TemplateMetric) Tags() map[string]string
- func (m *TemplateMetric) Time() time.Time
- type TemplateProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateMetric ¶
type TemplateMetric struct {
// contains filtered or unexported fields
}
func (*TemplateMetric) Field ¶
func (m *TemplateMetric) Field(key string) interface{}
func (*TemplateMetric) FieldList ¶ added in v1.22.0
func (m *TemplateMetric) FieldList() map[string]interface{}
func (*TemplateMetric) Fields ¶ added in v1.28.0
func (m *TemplateMetric) Fields() map[string]interface{}
func (*TemplateMetric) Name ¶ added in v1.14.1
func (m *TemplateMetric) Name() string
func (*TemplateMetric) String ¶ added in v1.22.0
func (m *TemplateMetric) String() string
func (*TemplateMetric) Tag ¶
func (m *TemplateMetric) Tag(key string) string
func (*TemplateMetric) TagList ¶ added in v1.22.0
func (m *TemplateMetric) TagList() map[string]string
func (*TemplateMetric) Tags ¶ added in v1.28.0
func (m *TemplateMetric) Tags() map[string]string
func (*TemplateMetric) Time ¶
func (m *TemplateMetric) Time() time.Time
type TemplateProcessor ¶
type TemplateProcessor struct { Tag string `toml:"tag"` Template string `toml:"template"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*TemplateProcessor) Apply ¶
func (r *TemplateProcessor) Apply(in ...telegraf.Metric) []telegraf.Metric
func (*TemplateProcessor) Init ¶
func (r *TemplateProcessor) Init() error
func (*TemplateProcessor) SampleConfig ¶
func (*TemplateProcessor) SampleConfig() string
Click to show internal directories.
Click to hide internal directories.