awsrds

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOMAIN = "aws.rds"

	OPT_DB_ID = "db-id"
)

Variables

This section is empty.

Functions

func NewCloudWatchClient

func NewCloudWatchClient(awsConfig aws.Config) *cloudwatch.Client

Types

type CloudWatchClient

type CloudWatchClient interface {
	GetMetricData(ctx context.Context, params *cloudwatch.GetMetricDataInput, optFns ...func(*cloudwatch.Options)) (*cloudwatch.GetMetricDataOutput, error)
}

type RDS

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

RDS collects basic RDS metrics: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MonitoringOverview.html#rds-metrics Enhanced metrics are not collected yet because they're actually logged to CloudWatch Logs, not the CloudWatch Metrics API. So handling that is nontrivial.

func NewRDS

func NewRDS(client CloudWatchClient) *RDS

func (*RDS) Collect

func (m *RDS) Collect(ctx context.Context, levelName string) ([]blip.MetricValue, error)

func (*RDS) Domain

func (c *RDS) Domain() string

func (*RDS) Help

func (c *RDS) Help() blip.CollectorHelp

func (*RDS) Prepare

func (m *RDS) Prepare(ctx context.Context, plan blip.Plan) (func(), error)

Jump to

Keyboard shortcuts

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