cloudwatch

package
v0.0.0-...-7a0dfb2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "cloudwatch"

BackendName is the name of this backend.

View Source
const MAX_DIMENSIONS = 10

Maximum number of dimensions per metric https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_limits.html

Variables

This section is empty.

Functions

func NewClientFromViper

func NewClientFromViper(v *viper.Viper, logger logrus.FieldLogger, pool *transport.TransportPool) (gostatsd.Backend, error)

NewClientFromViper constructs a Cloudwatch backend.

Types

type Client

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

Client is an object that is used to send messages to AWS CloudWatch.

func NewClient

func NewClient(namespace, transport string, disabled gostatsd.TimerSubtypes, logger logrus.FieldLogger, pool *transport.TransportPool) (*Client, error)

NewClient constructs a AWS Cloudwatch backend.

func (Client) Name

func (Client) Name() string

Name returns the name of the backend.

func (*Client) SendEvent

func (client *Client) SendEvent(ctx context.Context, e *gostatsd.Event) (retErr error)

Events currently not supported.

func (*Client) SendMetricsAsync

func (client *Client) SendMetricsAsync(ctx context.Context, metrics *gostatsd.MetricMap, cb gostatsd.SendCallback)

SendMetricsAsync sends the metrics in a MetricsMap to AWS Cloudwatch, preparing payload synchronously but doing the send asynchronously.

Jump to

Keyboard shortcuts

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