Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToYACE ¶
func ConvertToYACE(a Arguments) (yaceConf.ScrapeConf, error)
ConvertToYACE converts the river config into YACE 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.
Types ¶
type Arguments ¶
type Arguments struct { STSRegion string `river:"sts_region,attr"` FIPSDisabled bool `river:"fips_disabled,attr,optional"` Debug bool `river:"debug,attr,optional"` DiscoveryExportedTags TagsPerNamespace `river:"discovery_exported_tags,attr,optional"` Discovery []DiscoveryJob `river:"discovery,block,optional"` Static []StaticJob `river:"static,block,optional"` }
Arguments are the river based options to configure the embedded CloudWatch exporter.
func (*Arguments) SetToDefault ¶
func (a *Arguments) SetToDefault()
SetToDefault implements river.Defaulter.
type Dimensions ¶
Dimensions are the label values used to identify a unique metric stream in CloudWatch. Each key value pair in the dictionary corresponds to a label value pair.
type DiscoveryJob ¶
type DiscoveryJob struct { Auth RegionAndRoles `river:",squash"` CustomTags Tags `river:"custom_tags,attr,optional"` SearchTags Tags `river:"search_tags,attr,optional"` Type string `river:"type,attr"` Metrics []Metric `river:"metric,block"` }
DiscoveryJob configures a discovery job for a given service.
type RegionAndRoles ¶
type RegionAndRoles struct { Regions []string `river:"regions,attr"` Roles []Role `river:"role,block,optional"` }
RegionAndRoles exposes for each supported job, the AWS regions and IAM roles in which the agent should perform the scrape.
type StaticJob ¶
type StaticJob struct { Name string `river:",label"` Auth RegionAndRoles `river:",squash"` CustomTags Tags `river:"custom_tags,attr,optional"` Namespace string `river:"namespace,attr"` Dimensions Dimensions `river:"dimensions,attr"` Metrics []Metric `river:"metric,block"` }
StaticJob will scrape metrics that match all defined dimensions.
type Tags ¶
Tags represents a series of tags configured on an AWS resource. Each tag is a key value pair in the dictionary.
type TagsPerNamespace ¶
type TagsPerNamespace = cloudwatch_exporter.TagsPerNamespace