Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionCache ¶
type SessionCache interface { GetSTS(config.Role) stsiface.STSAPI GetCloudwatch(*string, config.Role) cloudwatchiface.CloudWatchAPI GetTagging(*string, config.Role) resourcegroupstaggingapiiface.ResourceGroupsTaggingAPIAPI GetASG(*string, config.Role) autoscalingiface.AutoScalingAPI GetEC2(*string, config.Role) ec2iface.EC2API GetDMS(*string, config.Role) databasemigrationserviceiface.DatabaseMigrationServiceAPI GetAPIGateway(*string, config.Role) apigatewayiface.APIGatewayAPI GetStorageGateway(*string, config.Role) storagegatewayiface.StorageGatewayAPI GetPrometheus(*string, config.Role) prometheusserviceiface.PrometheusServiceAPI Refresh() Clear() }
SessionCache is an interface to a cache of sessions and clients for all the roles specified by the exporter. For jobs with many duplicate roles, this provides relief to the AWS API and prevents timeouts by excessive credential requesting.
func NewSessionCache ¶
func NewSessionCache(cfg config.ScrapeConf, fips bool, logger logging.Logger) SessionCache
NewSessionCache creates a new session cache to use when fetching data from AWS.
Click to show internal directories.
Click to hide internal directories.