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 fromat
type LMetrics ¶ added in v1.14.0
type LMetrics struct {
Gauges []*Gauge `json:"gauges"`
}
LMetrics is the default struct for Librato's API fromat
type Librato ¶
type Librato struct { APIUser string `toml:"api_user"` APIToken string `toml:"api_token"` Debug bool `toml:"debug"` SourceTag string `toml:"source_tag" deprecated:"1.0.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.