cloudwatch

package
v0.0.0-...-06760cc Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 14 Imported by: 1

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