logs

package
v0.0.0-...-29da2f4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 10 Imported by: 0

README

aws cloudwatch logs plugins

aws_cloudwatch_log_groups

configuration
  • omit_retention_tag (bool): when true, do not output the retention tag
access control

The following IAM actions are required:

  • logs:DescribeLogGroups (resource: *)
output

Produce one datum for each CloudWatch log group found in the given session.

name: aws_cloudwatch_log_group tags:

  • name: the log group name
  • retention: the log group retention (e.g. 7d), or infinite

fields:

  • age (duration): the age of the log group
  • retention_in_days (int, optional): the log group's retention, if any
  • metric_filter_count (int): the number of metric filters associated with the log group
  • stored_bytes (int): the total storage required by the log group

Documentation

Index

Constants

View Source
const (
	LogGroupsPluginName       = "aws_cloudwatch_log_groups"
	LogGroupsPluginMetricName = "aws_cloudwatch_log_group"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogGroups

type LogGroups struct {
	OmitRetentionTag bool `toml:"omit_retention_tag"`
	// contains filtered or unexported fields
}

func (*LogGroups) DefaultConfig

func (plugin *LogGroups) DefaultConfig() string

func (*LogGroups) Description

func (plugin *LogGroups) Description() string

func (*LogGroups) Source

func (plugin *LogGroups) Source(c context.Context, collector metric.Collector) error

Jump to

Keyboard shortcuts

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