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 IsNotFound(err error) bool
- func IsParsingFailed(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 Update
- type UpdateConfig
- type VPC
- type VPCConfig
Constants ¶
const ( DefaultBatchSize = "0.3" DefaultPauseTime = "PT15M" )
const (
GaugeValue float64 = 1
)
Variables ¶
var ( NATQuotaCode = "L-FE5A380F" NATQuotaName = "nat-gateway" VPCServiceCode = "vpc" )
Functions ¶
func IsEndpointNotAvailable ¶
IsEndpointNotAvailable asserts that an error is due to service not available in the current region.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsInvalidResource ¶
IsInvalidResource asserts invalidResourceError.
func IsParsingFailed ¶ added in v1.4.0
IsparsingFailed asserts parsingFailedError.
func IsUnsupportedPlan ¶
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.
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.
func (*CloudFormation) Collect ¶
func (cf *CloudFormation) Collect(ch chan<- prometheus.Metric) error
Collect is the main metrics collection function.
func (*CloudFormation) Describe ¶
func (cf *CloudFormation) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
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.
func (*EC2Instances) Collect ¶
func (e *EC2Instances) Collect(ch chan<- prometheus.Metric) error
Collect is the main metrics collection function.
func (*EC2Instances) Describe ¶
func (e *EC2Instances) Describe(ch chan<- *prometheus.Desc) error
Describe emits the description for the metrics collected here.
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)
func (*ServiceQuota) Collect ¶
func (v *ServiceQuota) Collect(ch chan<- prometheus.Metric) error
func (*ServiceQuota) Describe ¶
func (v *ServiceQuota) Describe(ch chan<- *prometheus.Desc) error
type ServiceQuotaConfig ¶
type ServiceQuotaConfig struct { Helper *helper Logger micrologger.Logger InstallationName string }
type 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 Subnet ¶ added in v1.2.0
type Subnet struct {
// contains filtered or unexported fields
}
func NewSubnet ¶ added in v1.2.0
func NewSubnet(config SubnetConfig) (*Subnet, error)
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)
func (*TrustedAdvisor) Collect ¶
func (t *TrustedAdvisor) Collect(ch chan<- prometheus.Metric) error
func (*TrustedAdvisor) Describe ¶
func (t *TrustedAdvisor) Describe(ch chan<- *prometheus.Desc) error
type TrustedAdvisorConfig ¶
type TrustedAdvisorConfig struct { Helper *helper Logger micrologger.Logger }
type Update ¶ added in v1.4.0
type Update struct {
// contains filtered or unexported fields
}
func NewUpdate ¶ added in v1.4.0
func NewUpdate(config UpdateConfig) (*Update, error)
type UpdateConfig ¶ added in v1.4.0
type UpdateConfig struct { Helper *helper Logger micrologger.Logger }
type VPCConfig ¶
type VPCConfig struct { Helper *helper Logger micrologger.Logger InstallationName string }