Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxFloat64 = 1.797693134862315708145274237317043567981e+308 // 2**1023 * (2**53 - 1) / 2**52 MinFloat64 = 4.940656458412465441765687928682213723651e-324 // 1 / 2**(1023 - 1 + 52) )
from math
Variables ¶
View Source
var ErrBadThresholdFormat = errors.New("bad threshold format")
Functions ¶
Types ¶
type NagiosParser ¶
type NagiosParser struct { MetricName string DefaultTags map[string]string Log telegraf.Logger `toml:"-"` }
func (*NagiosParser) ParseLine ¶
func (p *NagiosParser) ParseLine(line string) (telegraf.Metric, error)
func (*NagiosParser) SetDefaultTags ¶
func (p *NagiosParser) SetDefaultTags(tags map[string]string)
Click to show internal directories.
Click to hide internal directories.