ec2

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: 14 Imported by: 0

README

aws ec2 plugins

aws_ec2_clientvpn

configuration

N/A

access control

The following IAM actions are required:

  • ec2:DescribeClientVpnConnections
  • ec2:DescribeClientVpnEndpoints
output

Produce one datum for each Client VPN connection.

name: aws_ec2_clientvpn_connection tags:

  • endpoint_id: the client endpoint id
  • common_name (optional): the connection's common name
  • status: the connection status
  • username (optional): the connection's user name

fields:

  • age (duration): the time since the connection was established
  • egress_bytes (count): the total number of bytes sent from the connection
  • egress_packets (count): the total number of packets sent from the connection
  • ingress_bytes (count): the total number of bytes sent to the connection
  • ingress_packets (count): the total number of packets sent from the connection

aws_ec2_instances

configuration
  • ignore_image_details (bool): when true, do not populate ami information
  • loose_instance_family (bool): when true, fold specialized families such as r5a, r5ad, r5d into r5.
access control

The following IAM actions are required:

  • ec2:DescribeInstance (resource: *)
  • ec2:DescribeImages
output

Produce one datum for each EC2 instance found in the given session.

name: aws_ec2_instance tags:

  • id: the instance id
  • state: the instance state (e.g. running)
  • platform: the instance platform (e.g. linux)
  • type: the instance type (e.g. t3.small)
  • family: the instance family (e.g. t3)
  • lifecycle: the instance lifecycle (e.g. spot)
  • image_id: the ami id
  • image_name: the ami name

fields:

  • age (duration): the instance age
  • image_age (duration): the age of the instance's ami
  • vcpus (count): the number of vCPUs

Documentation

Index

Constants

View Source
const (
	ClientVpnPluginName                 = "aws_ec2_clientvpn"
	ClientVpnPluginConnectionMetricName = "aws_ec2_clientvpn_connection"
)
View Source
const (
	InstancesPluginName        = "aws_ec2_instances"
	InstancesPluginMetricName  = "aws_ec2_instance"
	InstancesPluginConcurrency = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientVPN

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

func (*ClientVPN) DefaultConfig

func (plugin *ClientVPN) DefaultConfig() string

func (*ClientVPN) Description

func (plugin *ClientVPN) Description() string

func (*ClientVPN) Source

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

type Instances

type Instances struct {
	IgnoreImageDetails  bool `toml:"ignore_image_details"`
	LooseInstanceFamily bool `toml:"loose_instance_family"`
	// contains filtered or unexported fields
}

func (*Instances) DefaultConfig

func (plugin *Instances) DefaultConfig() string

func (*Instances) Description

func (plugin *Instances) Description() string

func (*Instances) Source

func (plugin *Instances) 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