gauge

package
v0.0.0-...-b76d872 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gauge

type Gauge struct {
	VMGauge      *VMGauge
	IPGauge      *IPGauge
	StorageGauge *StorageGauge
}

Gauge represents all gauges.

func CreateAll

func CreateAll() *Gauge

CreateAll creates all gauges.

func (Gauge) RegistryAll

func (g Gauge) RegistryAll()

RegistryAll registers all gauges.

type IPGauge

type IPGauge struct {
	Timestamp       *prometheus.GaugeVec
	MeasurementTime *prometheus.GaugeVec
	IPCount         *prometheus.GaugeVec
}

IPGauge represents IP gauges exported to Prometheus.

func NewIPGauge

func NewIPGauge() *IPGauge

NewIPGauge create new IP gauge.

func (*IPGauge) Export

func (ipg *IPGauge) Export(rec record.Record)

Export exports IP gauges to Prometheus.

func (*IPGauge) Register

func (ipg *IPGauge) Register()

Register registers IP gauge.

type StorageGauge

type StorageGauge struct {
	Timestamp                 *prometheus.GaugeVec
	CreateTime                *prometheus.GaugeVec
	FileCount                 *prometheus.GaugeVec
	StartTime                 *prometheus.GaugeVec
	EndTime                   *prometheus.GaugeVec
	ResourceCapacityUsed      *prometheus.GaugeVec
	LogicalCapacityUsed       *prometheus.GaugeVec
	ResourceCapacityAllocated *prometheus.GaugeVec
}

StorageGauge represents storage gauges exported to Prometheus.

func NewStorageGauge

func NewStorageGauge() *StorageGauge

NewStorageGauge creates storage gauge.

func (*StorageGauge) Export

func (stg *StorageGauge) Export(rec record.Record)

Export exports storage gauges to Prometheus.

func (*StorageGauge) Register

func (stg *StorageGauge) Register()

Register registers storage gauge.

type VMGauge

type VMGauge struct {
	Timestamp       *prometheus.GaugeVec
	StartTime       *prometheus.GaugeVec
	EndTime         *prometheus.GaugeVec
	SuspendDuration *prometheus.GaugeVec
	WallDuration    *prometheus.GaugeVec
	CPUDuration     *prometheus.GaugeVec
	CPUCount        *prometheus.GaugeVec
	NetworkInbound  *prometheus.GaugeVec
	NetworkOutbound *prometheus.GaugeVec
	PublicIPCount   *prometheus.GaugeVec
	Memory          *prometheus.GaugeVec
	Disk            *prometheus.GaugeVec
}

VMGauge represents virtual machine/server gauges exported to Prometheus.

func NewVMGauge

func NewVMGauge() *VMGauge

NewVMGauge creates new vm/server gauge.

func (*VMGauge) Export

func (vmg *VMGauge) Export(rec record.Record)

Export exports vm/server gauges to Prometheus.

func (*VMGauge) Register

func (vmg *VMGauge) Register()

Register registers vm/server gauge.

Jump to

Keyboard shortcuts

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