instances

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectorName = "instances-collector"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Projects  []string `long:"project" description:"Count instances that belong to selected project"`
	Zones     []string `long:"zone" description:"Count instances that belong to selected zone"`
	MatchTags []string `long:"match-tag" description:"Count instances that are matching selected tag"`
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector() *Collector

func (*Collector) Collect

func (ic *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (ic *Collector) Describe(ch chan<- *prometheus.Desc)

func (*Collector) GetData

func (ic *Collector) GetData() error

func (*Collector) GetName

func (ic *Collector) GetName() string

func (*Collector) Init

func (ic *Collector) Init(client *http.Client) error

Jump to

Keyboard shortcuts

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