aws

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

README

AWS

This module is responsible for collecting and exporting costs associated with AWS resources. aws.go is the entrypoint for the module and is responsible for setting up the AWS session and starting the collection process. The module is built upon the aws-sdk-go library and uses the Cost Explorer API to collect cost data.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config *Config) (*AWS, error)

func (*AWS) Collect

func (a *AWS) Collect(ch chan<- prometheus.Metric)

func (*AWS) Describe

func (a *AWS) Describe(ch chan<- *prometheus.Desc)

func (*AWS) RegisterCollectors

func (a *AWS) RegisterCollectors(registry provider.Registry) error

type Config

type Config struct {
	Services            []string
	Region              string
	Profile             string
	RoleARN             string
	ExcludeRegions      []string // AWS region names to skip (e.g. me-central-1)
	ScrapeInterval      time.Duration
	CollectorTimeout    time.Duration
	Logger              *slog.Logger
	AccountID           string
	BedrockFamilyFilter string // regex matched against family label; default "anthropic|amazon"
}

Directories

Path Synopsis
mocks
Package mock_client is a generated GoMock package.
Package mock_client is a generated GoMock package.
ec2
elbv2/mocks
Package mock_elbv2 is a generated GoMock package.
Package mock_elbv2 is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
msk
vpc

Jump to

Keyboard shortcuts

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