collector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterExporter

type ClusterExporter struct {
	NumNodes *prometheus.GaugeVec

	Stats      map[string]*prometheus.GaugeVec
	UsageStats map[string]*prometheus.GaugeVec
}

func NewClusterExporter

func NewClusterExporter(api *nutanix.Nutanix) *ClusterExporter

func (*ClusterExporter) Collect

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

func (*ClusterExporter) Describe

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

type ClusterStat

type ClusterStat struct {
	HelpText string
	Labels   []string
}

type HostExporter

type HostExporter struct {
	NumVms     *prometheus.GaugeVec
	Stats      map[string]*prometheus.GaugeVec
	UsageStats map[string]*prometheus.GaugeVec
}

func NewHostExporter

func NewHostExporter(api *nutanix.Nutanix) *HostExporter

func (*HostExporter) Collect

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

func (*HostExporter) Describe

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

type HostStat

type HostStat struct {
	HelpText string
	Labels   []string
}

type StorageExporter

type StorageExporter struct {
	Stats      map[string]*prometheus.GaugeVec
	UsageStats map[string]*prometheus.GaugeVec
}

func NewStorageExporter

func NewStorageExporter(api *nutanix.Nutanix) *StorageExporter

func (*StorageExporter) Collect

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

func (*StorageExporter) Describe

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

type StorageStat

type StorageStat struct {
	HelpText string
	Labels   []string
}

Jump to

Keyboard shortcuts

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