aws

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 11 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(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
	ScrapeInterval time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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