collector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExporter

func NewExporter(awsRegion string) (*exporter, error)

Types

type RDSClient

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

RDSClient is a wrapper for AWS rds client that implements helpers to get RDS metrics

func NewRDSClient

func NewRDSClient(awsRegion string) (*RDSClient, error)

NewRDSClient will return an initialized RDSClient

func (*RDSClient) GetRDSInstances

func (e *RDSClient) GetRDSInstances() ([]*types.DBInstance, error)

GetRDSInstances will get the instances from the RDS API

type RDSGatherer

type RDSGatherer interface {
	GetRDSInstances() ([]*types.DBInstance, error)
}

RDSGatherer is the interface that implements the methods required to gather RDS data

Jump to

Keyboard shortcuts

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