collector

package
v0.0.0-...-b6c860c Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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 DisksExporter

type DisksExporter struct {
	Online     *prometheus.GaugeVec
	DiskSize   *prometheus.GaugeVec
	Stats      map[string]*prometheus.GaugeVec
	UsageStats map[string]*prometheus.GaugeVec
}

func NewDisksExporter

func NewDisksExporter(api *nutanix.Nutanix) *DisksExporter

func (*DisksExporter) Collect

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

func (*DisksExporter) Describe

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

type DisksStat

type DisksStat struct {
	HelpText string
	Labels   []string
}

type HostExporter

type HostExporter struct {
	NumVms         *prometheus.GaugeVec
	BootTime       *prometheus.GaugeVec
	NumCpuCores    *prometheus.GaugeVec
	MemoryCapacity *prometheus.GaugeVec
	CpuCapacity    *prometheus.GaugeVec
	CpuFrequency   *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 {
	MaxCapacity *prometheus.GaugeVec
	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
}

type VirtualDisksExporter

type VirtualDisksExporter struct {
	DiskMb *prometheus.GaugeVec
	Stats  map[string]*prometheus.GaugeVec
}

func NewVirtualDisksExporter

func NewVirtualDisksExporter(api *nutanix.Nutanix) *VirtualDisksExporter

func (*VirtualDisksExporter) Collect

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

func (*VirtualDisksExporter) Describe

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

type VirtualDisksStat

type VirtualDisksStat struct {
	HelpText string
	Labels   []string
}

type VmsExporter

type VmsExporter struct {
	NumVCpus    *prometheus.GaugeVec
	MemoryMb    *prometheus.GaugeVec
	MemoryCapMb *prometheus.GaugeVec
	DiskMb      *prometheus.GaugeVec
	PowerState  *prometheus.GaugeVec
	Stats       map[string]*prometheus.GaugeVec
	UsageStats  map[string]*prometheus.GaugeVec
}

func NewVmsExporter

func NewVmsExporter(api *nutanix.Nutanix) *VmsExporter

func (*VmsExporter) Collect

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

func (*VmsExporter) Describe

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

type VmsStat

type VmsStat struct {
	HelpText string
	Labels   []string
}

Jump to

Keyboard shortcuts

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