Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInfo ¶
type AgentInfo struct {
Timestamp string
Gauges []GaugeValue
Points []PointValue
Counters []SampledValue
Samples []SampledValue
}
type ConsulAgent ¶
type ConsulAgent struct {
URL string `toml:"url"`
TokenFile string `toml:"token_file"`
Token string `toml:"token"`
ResponseTimeout config.Duration `toml:"timeout"`
tls.ClientConfig
// contains filtered or unexported fields
}
consul_agent configuration object
func (*ConsulAgent) Description ¶
func (n *ConsulAgent) Description() string
Description returns a description of the plugin
func (*ConsulAgent) Gather ¶
func (n *ConsulAgent) Gather(acc telegraf.Accumulator) error
Gather, collects metrics from Consul endpoint
func (*ConsulAgent) Init ¶
func (n *ConsulAgent) Init() error
func (*ConsulAgent) SampleConfig ¶
func (n *ConsulAgent) SampleConfig() string
SampleConfig returns a sample config
type PointValue ¶
Click to show internal directories.
Click to hide internal directories.