| 16 | ) |
| 17 | |
| 18 | type 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 | |
| 28 | func (p *Parser) SetDefaultTags(tags map[string]string) { |
| 29 | p.DefaultTags = tags |
nothing calls this directly
no outgoing calls
no test coverage detected