Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDimensions ¶
BuildDimensions makes a list of Dimensions by using a Point's tags. CloudWatch supports up to 10 dimensions per metric, so we only keep up to the first 10 alphabetically. This always includes the "host" tag if it exists.
func BuildMetricDatum ¶
func BuildMetricDatum(buildStatistic bool, highResolutionMetrics bool, point telegraf.Metric) []types.MetricDatum
BuildMetricDatum makes a MetricDatum from telegraf.Metric. It would check if all required fields of cloudwatch.StatisticSet are available. If so, it would build MetricDatum from statistic values. Otherwise, fields would still been built independently.
func PartitionDatums ¶
func PartitionDatums(size int, datums []types.MetricDatum) [][]types.MetricDatum
PartitionDatums partitions the MetricDatums into smaller slices of a max size so that are under the limit for the AWS API calls.
Types ¶
type CloudWatch ¶
type CloudWatch struct { Namespace string `toml:"namespace"` // CloudWatch Metrics Namespace HighResolutionMetrics bool `toml:"high_resolution_metrics"` WriteStatistics bool `toml:"write_statistics"` Log telegraf.Logger `toml:"-"` internalaws.CredentialConfig // contains filtered or unexported fields }
func (*CloudWatch) Close ¶
func (c *CloudWatch) Close() error
func (*CloudWatch) Connect ¶
func (c *CloudWatch) Connect() error
func (*CloudWatch) Description ¶
func (c *CloudWatch) Description() string
func (*CloudWatch) SampleConfig ¶
func (c *CloudWatch) SampleConfig() string
func (*CloudWatch) WriteToCloudWatch ¶
func (c *CloudWatch) WriteToCloudWatch(datums []types.MetricDatum) error
Click to show internal directories.
Click to hide internal directories.