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) Help ¶
func (c *RDS) Help() blip.CollectorHelp
Click to show internal directories.
Click to hide internal directories.