backend

package
v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Collect(r *collector.Result) error
}

Backend is a receiver of metrics

type CloudWatchBackend

type CloudWatchBackend struct {
	// contains filtered or unexported fields
}

CloudWatchBackend sends metrics to AWS CloudWatch

func NewCloudWatchBackend

func NewCloudWatchBackend(dimensions []CloudWatchDimension) *CloudWatchBackend

NewCloudWatchBackend returns a new CloudWatchBackend with optional dimensions

func (*CloudWatchBackend) Collect

func (cb *CloudWatchBackend) Collect(r *collector.Result) error

type CloudWatchDimension

type CloudWatchDimension struct {
	Key   string
	Value string
}

CloudWatchDimension is a dimension to add to metrics

func ParseCloudWatchDimensions

func ParseCloudWatchDimensions(ds string) ([]CloudWatchDimension, error)

type Prometheus

type Prometheus struct {
	// contains filtered or unexported fields
}

func NewPrometheusBackend

func NewPrometheusBackend(path, addr string) *Prometheus

func (*Prometheus) Collect

func (p *Prometheus) Collect(r *collector.Result) error

type StatsD

type StatsD struct {
	// contains filtered or unexported fields
}

StatsD sends metrics to StatsD (Datadog spec)

func NewStatsDBackend

func NewStatsDBackend(host string, tagsSupported bool) (*StatsD, error)

func (*StatsD) Collect

func (cb *StatsD) Collect(r *collector.Result) error

Jump to

Keyboard shortcuts

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