Documentation ¶
Index ¶
- type Parser
- func (p *Parser) GetTimestamp(m *dto.Metric, now time.Time) time.Time
- func (p *Parser) InitFromConfig(config *parsers.Config) error
- func (p *Parser) Parse(buf []byte) ([]telegraf.Metric, error)
- func (p *Parser) ParseLine(line string) (telegraf.Metric, error)
- func (p *Parser) SetDefaultTags(tags map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { DefaultTags map[string]string `toml:"-"` Header http.Header `toml:"-"` // set by the prometheus input IgnoreTimestamp bool `toml:"prometheus_ignore_timestamp"` }
func (*Parser) GetTimestamp ¶ added in v1.21.0
func (*Parser) InitFromConfig ¶ added in v1.24.0
func (*Parser) SetDefaultTags ¶
Click to show internal directories.
Click to hide internal directories.