exporter

package
v0.0.0-...-dc8d3eb Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 8 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 AutoScaling metrics.

func NewExporter

func NewExporter(region string, groups []string) (*Exporter, error)

NewExporter returns a new exporter of AWS Autoscaling group metrics.

func (*Exporter) Collect

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

Collect fetches info from the AWS API

func (*Exporter) Describe

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

Describe outputs metric descriptions.

type GroupScrapeResult

type GroupScrapeResult struct {
	Name             string
	Value            float64
	AutoScalingGroup string
	Region           string
}

Jump to

Keyboard shortcuts

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