collectors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(plogger log.Logger)

Types

type Bandwidth

type Bandwidth map[string]BandwidthDatacentre

Bandwidth data structure

type BandwidthCollector

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

BandwidthCollector definition

func NewBandwidthCollector

func NewBandwidthCollector() *BandwidthCollector

NewBandwidthCollector definition

func (*BandwidthCollector) Collect

func (c *BandwidthCollector) Collect(ch chan<- prometheus.Metric)

Collect definition

func (*BandwidthCollector) Describe

func (c *BandwidthCollector) Describe(ch chan<- *prometheus.Desc)

Describe definition

type BandwidthDatacentre

type BandwidthDatacentre map[string]BandwidthRack

BandwidthDatacentre data structure

type BandwidthRack

type BandwidthRack struct {
	Time     string `json:"time"`
	In       string `json:"in"`
	Out      string `json:"out"`
	Networks map[string]Network
}

BandwidthRack data structure

type Environment

type Environment map[string]EnvironmentDatacentre

Environment data structure

type EnvironmentCollector

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

EnvironmentCollector definition

func NewEnvironmentCollector

func NewEnvironmentCollector() *EnvironmentCollector

NewEnvironmentCollector definition

func (*EnvironmentCollector) Collect

func (c *EnvironmentCollector) Collect(ch chan<- prometheus.Metric)

Collect definition

func (*EnvironmentCollector) Describe

func (c *EnvironmentCollector) Describe(ch chan<- *prometheus.Desc)

Describe definition

type EnvironmentDatacentre

type EnvironmentDatacentre map[string]EnvironmentRack

EnvironmentDatacentre data structure

type EnvironmentMetrics

type EnvironmentMetrics map[string]Metric

type EnvironmentRack

type EnvironmentRack map[string]Metric

EnvironmentRack data structure

type Metric

type Metric struct {
	Time  interface{} `json:"time"`  // N/A
	Value interface{} `json:"value"` // N/A
}

type Network

type Network struct {
	Time string `json:"time"`
	In   string `json:"in"`
	Out  string `json:"out"`
}

Network data structure

Jump to

Keyboard shortcuts

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