exporter

package
v0.0.0-...-7035c32 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CostExplorer

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

CostExplorer is a structure representing the functions required to fetch data from AWS Cost Explorer

type EC2Instance

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

EC2Instance is a structure representing the functions required to fetch data from EC2

type Exporter

type Exporter struct {
	Job     *config.Job
	Logger  *logrus.Logger
	Metrics *metrics.Set
	Session *session.Session
}

Exporter representst the structure for all app wide exporters and structs

func (*Exporter) CollectCostMetrics

func (exporter *Exporter) CollectCostMetrics() error

CollectCostMetrics scrapes the AWS Cost Explorer API and writes the metric data to Prometheus

func (*Exporter) CollectInstanceMetrics

func (exporter *Exporter) CollectInstanceMetrics() error

CollectInstanceMetrics scrapes the AWS EC2 API for Instance details and writes the metric data to Prometheus

func (*Exporter) SetAWSSession

func (exporter *Exporter) SetAWSSession()

SetAWSSession is a method to create a new session for the AWS API

Jump to

Keyboard shortcuts

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