azure

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Azure

This package is responsible for collecting and exporting cost metrics associated with Azure.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidSubscriptionId = errors.New("subscription id was invalid")
)

Functions

This section is empty.

Types

type Azure

type Azure struct {
	// contains filtered or unexported fields
}

func New

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

func (*Azure) Collect

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

func (*Azure) Describe

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

func (*Azure) RegisterCollectors

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

type Config

type Config struct {
	Logger *slog.Logger

	SubscriptionId string

	CollectorTimeout time.Duration
	Services         []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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