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) 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.
Click to show internal directories.
Click to hide internal directories.