exporter

package
v0.0.0-...-4a8fd02 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package exporter implements Prometheus exporter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(logger slog.Logger, collectorConfiguration Configuration, awsAccountID string, awsRegion string, rdsClient rdsClient, ec2Client EC2Client, cloudWatchClient cloudWatchClient, servicequotasClient servicequotasClient) *rdsCollector

Types

type Configuration

type Configuration struct {
	CollectInstanceMetrics bool
	CollectInstanceTags    bool
	CollectInstanceTypes   bool
	CollectLogsSize        bool
	CollectMaintenances    bool
	CollectQuotas          bool
	CollectUsages          bool
}

type EC2Client

type EC2Client interface {
	DescribeInstanceTypes(context.Context, *aws_ec2.DescribeInstanceTypesInput, ...func(*aws_ec2.Options)) (*aws_ec2.DescribeInstanceTypesOutput, error)
}

Jump to

Keyboard shortcuts

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