Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultHost = "collector.instrumentalapp.com" DefaultPort = 8000 HelloMessage = "hello version go/telegraf/1.1\n" AuthFormat = "authenticate %s\n" HandshakeFormat = HelloMessage + AuthFormat )
Variables ¶
View Source
var ( ValueIncludesBadChar = regexp.MustCompile("[^[:digit:].]") MetricNameReplacer = regexp.MustCompile("[^-[:alnum:]_.]+") )
Functions ¶
This section is empty.
Types ¶
type Instrumental ¶
type Instrumental struct { Host string `toml:"host"` Port int `toml:"port"` APIToken config.Secret `toml:"api_token"` Prefix string `toml:"prefix"` DataFormat string `toml:"data_format"` Template string `toml:"template"` Templates []string `toml:"templates"` Timeout config.Duration `toml:"timeout"` Debug bool `toml:"debug"` Log telegraf.Logger `toml:"-"` // contains filtered or unexported fields }
func (*Instrumental) Close ¶
func (i *Instrumental) Close() error
func (*Instrumental) Connect ¶
func (i *Instrumental) Connect() error
func (*Instrumental) Init ¶ added in v1.27.0
func (i *Instrumental) Init() error
func (*Instrumental) SampleConfig ¶
func (*Instrumental) SampleConfig() string
Click to show internal directories.
Click to hide internal directories.