exporter

package
v0.0.0-...-ae7e9b5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Exporter implements the prometheus.Exporter interface, and exports AWS Spot Price metrics.

func NewExporter

func NewExporter(p []string, pds []string, regions []string) (*Exporter, error)

NewExporter returns a new exporter of AWS Spot Price metrics.

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect fetches info from the AWS API and the BanzaiCloud recommendation API

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe outputs metric descriptions.

Jump to

Keyboard shortcuts

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