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 ¶ added in v1.14.0
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"` SourceTag string `toml:"source_tag" deprecated:"1.0.0;1.35.0;use 'template' instead"` 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.