librato

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2016 License: MIT Imports: 8 Imported by: 0

README

Librato Output Plugin

This plugin writes to the Librato Metrics API and requires an api_user and api_token which can be obtained here for the account.

The source_tag option in the Configuration file is used to send contextual information from Point Tags to the API.

If the point value being sent cannot be converted to a float64, the metric is skipped.

Currently, the plugin does not send any associated Point Tags.

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"`
}

type Librato

type Librato struct {
	ApiUser   string
	ApiToken  string
	SourceTag string
	Timeout   internal.Duration
	// contains filtered or unexported fields
}

func NewLibrato

func NewLibrato(apiUrl string) *Librato

func (*Librato) Close

func (l *Librato) Close() error

func (*Librato) Connect

func (l *Librato) Connect() error

func (*Librato) Description

func (l *Librato) Description() string

func (*Librato) SampleConfig

func (l *Librato) SampleConfig() string

func (*Librato) Write

func (l *Librato) Write(points []*client.Point) error

type Metrics

type Metrics struct {
	Gauges []*Gauge `json:"gauges"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL