MCPcopy
hub / github.com/influxdata/telegraf / Parser

Struct Parser

plugins/parsers/openmetrics/parser.go:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16)
17
18type Parser struct {
19 IgnoreTimestamp bool `toml:"openmetrics_ignore_timestamp"`
20 MetricVersion int `toml:"openmetrics_metric_version"`
21 Header http.Header `toml:"-"` // set by the input plugin
22 DefaultTags map[string]string `toml:"-"`
23 Log telegraf.Logger `toml:"-"`
24
25 timeFunc func() time.Time
26}
27
28func (p *Parser) SetDefaultTags(tags map[string]string) {
29 p.DefaultTags = tags

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected