Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gauge ¶
type Gauge struct {
Name string `json:"name"`
Value float64 `json:"value"`
Source string `json:"source"`
MeasureTime int64 `json:"measure_time"`
}
Gauge is the gauge format for Librato's API format
type LMetrics ¶
type LMetrics struct {
Gauges []*Gauge `json:"gauges"`
}
LMetrics is the default struct for Librato's API format
type Librato ¶
type Librato struct {
APIUser config.Secret `toml:"api_user"`
APIToken config.Secret `toml:"api_token"`
Debug bool `toml:"debug"`
Timeout config.Duration `toml:"timeout"`
Template string `toml:"template"`
Log telegraf.Logger `toml:"-"`
APIUrl string
// contains filtered or unexported fields
}
Librato structure for configuration and client
func NewLibrato ¶
NewLibrato is the main constructor for librato output plugins
func (*Librato) Connect ¶
Connect is the default output plugin connection function who make sure it can connect to the endpoint
func (*Librato) SampleConfig ¶
Click to show internal directories.
Click to hide internal directories.