Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToYACEConfig ¶
func ToYACEConfig(c *Config) (yaceConf.ScrapeConf, bool, error)
ToYACEConfig converts a Config into YACE's config model. Note that the conversion is not direct, some values have been opinionated to simplify the config model the agent exposes for this integration. The returned boolean is whether or not AWS FIPS endpoints will be enabled.
Types ¶
type Config ¶
type Config struct { STSRegion string `yaml:"sts_region"` FIPSDisabled bool `yaml:"fips_disabled"` Discovery DiscoveryConfig `yaml:"discovery"` Static []StaticJob `yaml:"static"` }
Config is the configuration for the CloudWatch metrics integration
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
NewIntegration creates a new integration from the config.
type DiscoveryConfig ¶
type DiscoveryConfig struct { ExportedTags TagsPerNamespace `yaml:"exported_tags"` Jobs []*DiscoveryJob `yaml:"jobs"` }
DiscoveryConfig configures scraping jobs that will auto-discover metrics dimensions for a given service.
type DiscoveryJob ¶
type DiscoveryJob struct { InlineRegionAndRoles `yaml:",inline"` InlineCustomTags `yaml:",inline"` SearchTags []Tag `yaml:"search_tags"` Type string `yaml:"type"` Metrics []Metric `yaml:"metrics"` }
DiscoveryJob configures a discovery job for a given service.
type InlineCustomTags ¶
type InlineCustomTags struct {
CustomTags []Tag `yaml:"custom_tags"`
}
type InlineRegionAndRoles ¶
InlineRegionAndRoles exposes for each supported job, the AWS regions and IAM roles in which the agent should perform the scrape.
type StaticJob ¶
type StaticJob struct { InlineRegionAndRoles `yaml:",inline"` InlineCustomTags `yaml:",inline"` Name string `yaml:"name"` Namespace string `yaml:"namespace"` Dimensions []Dimension `yaml:"dimensions"` Metrics []Metric `yaml:"metrics"` }
StaticJob will scrape metrics that match all defined dimensions.
type TagsPerNamespace ¶
TagsPerNamespace represents for each namespace, a list of tags that will be exported as labels in each metric.