Documentation
¶
Index ¶
- Constants
- Variables
- func IsEndpointNotAvailable(err error) bool
- func IsInvalidConfig(err error) bool
- func IsInvalidResource(err error) bool
- func IsNilLimit(err error) bool
- func IsNilUsage(err error) bool
- func IsUnsupportedPlan(err error) bool
- type ASG
- type ASGConfig
- type CloudFormation
- type CloudFormationConfig
- type EC2Instances
- type EC2InstancesConfig
- type ELB
- type ELBConfig
- type NAT
- type NATConfig
- type ServiceQuota
- type ServiceQuotaConfig
- type Set
- type SetConfig
- type Subnet
- type SubnetConfig
- type TrustedAdvisor
- type TrustedAdvisorConfig
- type VPC
- type VPCConfig
Constants ¶
const (
GaugeValue float64 = 1
)
Variables ¶
var (
NATQuotaCode = "L-FE5A380F"
NATQuotaName = "nat-gateway"
VPCServiceCode = "vpc"
)
Functions ¶
func IsEndpointNotAvailable ¶
func IsEndpointNotAvailable(err error) bool
IsEndpointNotAvailable asserts that an error is due to service not available in the current region.
func IsInvalidConfig ¶
func IsInvalidConfig(err error) bool
IsInvalidConfig asserts invalidConfigError.
func IsInvalidResource ¶
func IsInvalidResource(err error) bool
IsInvalidResource asserts invalidResourceError.
func IsUnsupportedPlan ¶
func IsUnsupportedPlan(err error) bool
IsUnsupportedPlan asserts that an error is due to Trusted Advisor not being available with the current support plan.
Types ¶
type ASG ¶
type ASG struct {
// contains filtered or unexported fields
}
ASG is the main struct for this collector.
func NewASG ¶
func NewASG(config ASGConfig) (*ASG, error)
NewASG creates a new AutoScalingGroup metrics collector.
type ASGConfig ¶
type ASGConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
ASGConfig is this collector's configuration struct.
type CloudFormation ¶
type CloudFormation struct {
// contains filtered or unexported fields
}
Main struct for this collector.
func NewCloudFormation ¶
func NewCloudFormation(config CloudFormationConfig) (*CloudFormation, error)
Creates a new CloudFormation metrics collector.
type CloudFormationConfig ¶
type CloudFormationConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
Configuration struct.
type EC2Instances ¶
type EC2Instances struct {
// contains filtered or unexported fields
}
EC2Instances is the main struct for this collector.
func NewEC2Instances ¶
func NewEC2Instances(config EC2InstancesConfig) (*EC2Instances, error)
NewEC2Instances creates a new EC2 instance metrics collector.
type EC2InstancesConfig ¶
type EC2InstancesConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
EC2InstancesConfig is this collector's configuration struct.
type ELBConfig ¶
type ELBConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
type NATConfig ¶
type NATConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
type ServiceQuota ¶
type ServiceQuota struct {
// contains filtered or unexported fields
}
func NewServiceQuota ¶
func NewServiceQuota(config ServiceQuotaConfig) (*ServiceQuota, error)
type ServiceQuotaConfig ¶
type ServiceQuotaConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
type Set ¶
type Set struct {
*collector.Set
}
Set is basically only a wrapper for the collector implementations. It eases the initialization and prevents some weird import mess so we do not have to alias packages. There is also the benefit of the helper type kept private so we do not need to expose this magic.
type SetConfig ¶
type SetConfig struct {
Clients k8sclient.Interface
Logger micrologger.Logger
AWSConfig clientaws.Config
InstallationName string
TrustedAdvisorEnabled bool
}
type Subnet ¶ added in v1.2.0
type Subnet struct {
// contains filtered or unexported fields
}
type SubnetConfig ¶ added in v1.2.0
type SubnetConfig struct {
Helper *helper
Logger micrologger.Logger
InstallationName string
}
type TrustedAdvisor ¶
type TrustedAdvisor struct {
// contains filtered or unexported fields
}
func NewTrustedAdvisor ¶
func NewTrustedAdvisor(config TrustedAdvisorConfig) (*TrustedAdvisor, error)
type TrustedAdvisorConfig ¶
type TrustedAdvisorConfig struct {
Helper *helper
Logger micrologger.Logger
}