aws

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 27 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
}

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.
vpc

Jump to

Keyboard shortcuts

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