collectors

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCollector

type AWSCollector struct {
	// EC2 only
	InstanceFilters *[]Filter `json:"instance_filters,omitempty" toml:"instance_filters,omitempty" yaml:"instance_filters,omitempty"`
	// ElastiCache only
	CacheClusterIDs *[]string         `json:"cache_cluster_ids,omitempty" toml:"cache_cluster_ids,omitempty" yaml:"cache_cluster_ids,omitempty"`
	Namespace       string            `json:"namespace" toml:"namespace" yaml:"namespace"`    // e.g. AWS/EC2
	Dimensions      map[string]string `json:"dimensions" toml:"dimensions" yaml:"dimensions"` // key:val pairs
	Tags            circonus.Tags     `json:"tags" toml:"tags" yaml:"tags"`                   // service tags
	Metrics         []Metric          `json:"metrics" toml:"metrics" yaml:"metrics"`          // mapping of metrics to collect
	Disabled        bool              `json:"disabled" toml:"disabled" yaml:"disabled"`       // disable metric collection for this aws service namespace
	UseGMD          bool              `json:"use_gmd" toml:"use_gmd" yaml:"use_gmd"`          // use getMetricData instead of getMetricStatistics
}

AWSCollector defines a generic aws service metric collector.

func ConfigExample

func ConfigExample() ([]AWSCollector, error)

ConfigExample generates configuration examples for collectors nolint: gocyclo

type AWSMetric

type AWSMetric struct {
	Name     string   `json:"name" toml:"name" yaml:"name"`             // REQUIRED
	Units    string   `json:"units" toml:"units" yaml:"units"`          // REQUIRED
	Stats    []string `json:"stats" toml:"stats" yaml:"stats"`          // REQUIRED
	Disabled bool     `json:"disabled" toml:"disabled" yaml:"disabled"` // disable collection (DEFAULT: false)
}

AWSMetric defines an AWS metrics.

type ApplicationELB

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

ApplicationELB defines the collector instance.

func (*ApplicationELB) Collect

func (c *ApplicationELB) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ApplicationELB) DefaultMetrics

func (c *ApplicationELB) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ApplicationELB) Enabled

func (c *ApplicationELB) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ApplicationELB) ID

func (c *ApplicationELB) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type CirconusMetric

type CirconusMetric struct {
	Name string        `json:"name" toml:"name" yaml:"name"` // DEFAULT AWSMetric.Name
	Type string        `json:"type" toml:"type" yaml:"type"` // REQUIRED, (gauge|counter|histogram|text) - NOTE: histogram is for HIGH volume data (as in multiple samples per second, aws does not provide this level of granularity)
	Tags circonus.Tags `json:"tags" toml:"tags" yaml:"tags"` // DEFAULT none - additional metric specific stream tags - will automatically add "units:"+strings.ToLower(AWSMetric.Units), aws_region:current_region_being_polled, aws_instance_id:instance_id_of_metric_origin
}

CirconusMetric defines a Circonus metric.

type CloudFront

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

CloudFront defines the collector instance.

func (*CloudFront) Collect

func (c *CloudFront) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*CloudFront) DefaultMetrics

func (c *CloudFront) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*CloudFront) Enabled

func (c *CloudFront) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*CloudFront) ID

func (c *CloudFront) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type Collector

type Collector interface {
	// Collect(sess *session.Session, metricDest io.Writer, baseTags circonus.Tags, interval uint, period int64) error
	Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error
	ID() string
	DefaultMetrics() []Metric
}

Collector interface for aws metric services.

func New

func New(ctx context.Context, check *circonus.Check, cfgs []AWSCollector, logger zerolog.Logger) ([]Collector, error)

New creates a new collector instance.

type DX added in v0.2.1

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

DX defines the collector instance.

func (*DX) Collect added in v0.2.1

func (c *DX) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*DX) DefaultMetrics added in v0.2.1

func (c *DX) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*DX) Enabled added in v0.2.1

func (c *DX) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*DX) ID added in v0.2.1

func (c *DX) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type DynamoDB

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

DynamoDB defines the collector instance.

func (*DynamoDB) Collect

func (c *DynamoDB) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*DynamoDB) DefaultMetrics

func (c *DynamoDB) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*DynamoDB) Enabled

func (c *DynamoDB) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*DynamoDB) ID

func (c *DynamoDB) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type EBS

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

EBS defines the collector instance.

func (*EBS) Collect

func (c *EBS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect pulls list of ebs volumes from ec2 instances, then configured metrics from cloudwatch, forwarding them to circonus.

func (*EBS) DefaultMetrics

func (c *EBS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*EBS) Enabled

func (c *EBS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*EBS) ID

func (c *EBS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type EC2

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

EC2 defines the collector instance.

func (*EC2) Collect

func (c *EC2) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect pulls list of active ec2 instances, then configured metrics from cloudwatch, forwarding them to circonus.

func (*EC2) DefaultMetrics

func (c *EC2) DefaultMetrics() []Metric

DefaultMetrics defines the default EC2 metrics.

func (*EC2) Enabled

func (c *EC2) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*EC2) ID

func (c *EC2) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type EC2AutoScaling

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

EC2AutoScaling defines the collector instance.

func (*EC2AutoScaling) Collect

func (c *EC2AutoScaling) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*EC2AutoScaling) DefaultMetrics

func (c *EC2AutoScaling) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*EC2AutoScaling) Enabled

func (c *EC2AutoScaling) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*EC2AutoScaling) ID

func (c *EC2AutoScaling) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type EC2Spot

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

EC2Spot defines the collector instance.

func (*EC2Spot) Collect

func (c *EC2Spot) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*EC2Spot) DefaultMetrics

func (c *EC2Spot) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*EC2Spot) Enabled

func (c *EC2Spot) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*EC2Spot) ID

func (c *EC2Spot) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ECS

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

ECS defines the collector instance.

func (*ECS) Collect

func (c *ECS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ECS) DefaultMetrics

func (c *ECS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ECS) Enabled

func (c *ECS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ECS) ID

func (c *ECS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type EFS

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

EFS defines the collector instance.

func (*EFS) Collect

func (c *EFS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*EFS) DefaultMetrics

func (c *EFS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*EFS) Enabled

func (c *EFS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*EFS) ID

func (c *EFS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ELB

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

ELB defines the collector instance.

func (*ELB) Collect

func (c *ELB) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ELB) DefaultMetrics

func (c *ELB) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ELB) Enabled

func (c *ELB) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ELB) ID

func (c *ELB) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ES

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

ES defines the collector instance.

func (*ES) Collect

func (c *ES) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ES) DefaultMetrics

func (c *ES) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ES) Enabled

func (c *ES) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ES) ID

func (c *ES) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ElastiCache

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

ElastiCache defines the collector instance.

func (*ElastiCache) Collect

func (c *ElastiCache) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect pulls list of active clusters and nodes for each cluster (the dimensions required to collect telemetry), then configured metrics from cloudwatch, then collects each enable telemetry point forwarding them to circonus.

func (*ElastiCache) Enabled

func (c *ElastiCache) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ElastiCache) ID

func (c *ElastiCache) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ElasticBeanstalk

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

ElasticBeanstalk defines the collector instance.

func (*ElasticBeanstalk) Collect

func (c *ElasticBeanstalk) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ElasticBeanstalk) DefaultMetrics

func (c *ElasticBeanstalk) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ElasticBeanstalk) Enabled

func (c *ElasticBeanstalk) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ElasticBeanstalk) ID

func (c *ElasticBeanstalk) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ElasticInterface

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

ElasticInterface defines the collector instance.

func (*ElasticInterface) Collect

func (c *ElasticInterface) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ElasticInterface) DefaultMetrics

func (c *ElasticInterface) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ElasticInterface) Enabled

func (c *ElasticInterface) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ElasticInterface) ID

func (c *ElasticInterface) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ElasticMapReduce

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

ElasticMapReduce defines the collector instance.

func (*ElasticMapReduce) Collect

func (c *ElasticMapReduce) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ElasticMapReduce) DefaultMetrics

func (c *ElasticMapReduce) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ElasticMapReduce) Enabled

func (c *ElasticMapReduce) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ElasticMapReduce) ID

func (c *ElasticMapReduce) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type ElasticTranscoder

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

ElasticTranscoder defines the collector instance.

func (*ElasticTranscoder) Collect

func (c *ElasticTranscoder) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*ElasticTranscoder) DefaultMetrics

func (c *ElasticTranscoder) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*ElasticTranscoder) Enabled

func (c *ElasticTranscoder) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*ElasticTranscoder) ID

func (c *ElasticTranscoder) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type Filter

type Filter struct {
	Name   *string   `json:"name" toml:"name" yaml:"name"`
	Values []*string `json:"values" toml:"values" yaml:"values"`
}

Filter defines a generic AWS EC2 filter https://docs.aws.amazon.com/sdk-for-go/api/service/ec2/#Filter.

type KMS

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

KMS defines the collector instance.

func (*KMS) Collect

func (c *KMS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*KMS) DefaultMetrics

func (c *KMS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration Metric is only valid for EXTERNAL CMKs Dimension: KeyId.

func (*KMS) Enabled

func (c *KMS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*KMS) ID

func (c *KMS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type Lambda

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

Lambda defines the collector instance.

func (*Lambda) Collect

func (c *Lambda) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*Lambda) DefaultMetrics

func (c *Lambda) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*Lambda) Enabled

func (c *Lambda) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*Lambda) ID

func (c *Lambda) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type Metric

type Metric struct {
	CirconusMetric CirconusMetric `json:"circonus" toml:"circonus" yaml:"circonus"` // REQUIRED
	AWSMetric      AWSMetric      `json:"aws" toml:"aws" yaml:"aws"`                // REQUIRED
}

Metric maps a given metric between AWS and Circonus.

type MetricTimespan

type MetricTimespan struct {
	Start  time.Time
	End    time.Time
	Period int64
}

MetricTimespan defines the span of time for requesting metrics.

type NATGateway

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

NATGateway defines the collector instance.

func (*NATGateway) Collect

func (c *NATGateway) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*NATGateway) DefaultMetrics

func (c *NATGateway) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*NATGateway) Enabled

func (c *NATGateway) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*NATGateway) ID

func (c *NATGateway) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type NetworkELB

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

NetworkELB defines the collector instance.

func (*NetworkELB) Collect

func (c *NetworkELB) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*NetworkELB) DefaultMetrics

func (c *NetworkELB) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*NetworkELB) Enabled

func (c *NetworkELB) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*NetworkELB) ID

func (c *NetworkELB) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type RDS

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

RDS defines the collector instance.

func (*RDS) Collect

func (c *RDS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*RDS) DefaultMetrics

func (c *RDS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*RDS) Enabled

func (c *RDS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*RDS) ID

func (c *RDS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type Route53

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

Route53 defines the collector instance.

func (*Route53) Collect

func (c *Route53) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*Route53) DefaultMetrics

func (c *Route53) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*Route53) Enabled

func (c *Route53) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*Route53) ID

func (c *Route53) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type Route53Resolver

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

Route53Resolver defines the collector instance.

func (*Route53Resolver) Collect

func (c *Route53Resolver) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*Route53Resolver) DefaultMetrics

func (c *Route53Resolver) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*Route53Resolver) Enabled

func (c *Route53Resolver) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*Route53Resolver) ID

func (c *Route53Resolver) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type S3

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

S3 defines the collector instance.

func (*S3) Collect

func (c *S3) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*S3) DefaultMetrics

func (c *S3) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*S3) Enabled

func (c *S3) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*S3) ID

func (c *S3) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type SNS

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

SNS defines the collector instance.

func (*SNS) Collect

func (c *SNS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*SNS) DefaultMetrics

func (c *SNS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*SNS) Enabled

func (c *SNS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*SNS) ID

func (c *SNS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type SQS

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

SQS defines the collector instance.

func (*SQS) Collect

func (c *SQS) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*SQS) DefaultMetrics

func (c *SQS) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*SQS) Enabled

func (c *SQS) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*SQS) ID

func (c *SQS) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

type TransitGateway

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

TransitGateway defines the collector instance.

func (*TransitGateway) Collect

func (c *TransitGateway) Collect(sess *session.Session, timespan MetricTimespan, baseTags circonus.Tags) error

Collect is the common collection method - can be overridden by individual collectors (see ec2/elasticache).

func (*TransitGateway) DefaultMetrics

func (c *TransitGateway) DefaultMetrics() []Metric

DefaultMetrics returns a default metric configuration.

func (*TransitGateway) Enabled

func (c *TransitGateway) Enabled() bool

Enabled returns true if the collector is enabled. If the collector has been dynamically disabled by a potentially temporary error, that will be logged and the collector will be re-enabled to try again after an hour. See the AccessDenied case in trackAWSErrors method.

func (*TransitGateway) ID

func (c *TransitGateway) ID() string

ID returns the collector's string id/name (e.g. used in logging by the instance using the collector).

Jump to

Keyboard shortcuts

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