Documentation ¶
Index ¶
- func CollectData(collectors []Collector) map[string]interface{}
- func GetDefaultDisk() (string, error)
- func HostLabels(prefix string, collectors []Collector) (map[string]string, error)
- type CPUCollector
- type CloudProviderCollector
- type Collector
- type DiskCollector
- type Info
- type InfoData
- type IopsCollector
- type KeyCollector
- type MemoryCollector
- type OSCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectData ¶
func GetDefaultDisk ¶
Types ¶
type CPUCollector ¶
type CPUCollector struct { }
func (CPUCollector) GetData ¶
func (c CPUCollector) GetData() (map[string]interface{}, error)
func (CPUCollector) GetLabels ¶
func (c CPUCollector) GetLabels(prefix string) (map[string]string, error)
func (CPUCollector) KeyName ¶
func (c CPUCollector) KeyName() string
type CloudProviderCollector ¶
type CloudProviderCollector struct{}
func (CloudProviderCollector) GetData ¶
func (c CloudProviderCollector) GetData() (map[string]interface{}, error)
func (CloudProviderCollector) GetLabels ¶
func (c CloudProviderCollector) GetLabels(prefix string) (map[string]string, error)
func (CloudProviderCollector) KeyName ¶
func (c CloudProviderCollector) KeyName() string
type DiskCollector ¶
func (DiskCollector) GetData ¶
func (d DiskCollector) GetData() (map[string]interface{}, error)
func (DiskCollector) GetLabels ¶
func (d DiskCollector) GetLabels(prefix string) (map[string]string, error)
func (DiskCollector) KeyName ¶
func (d DiskCollector) KeyName() string
type IopsCollector ¶
type IopsCollector struct { }
func (IopsCollector) GetData ¶
func (i IopsCollector) GetData() (map[string]interface{}, error)
func (IopsCollector) GetLabels ¶
func (i IopsCollector) GetLabels(prefix string) (map[string]string, error)
func (IopsCollector) KeyName ¶
func (i IopsCollector) KeyName() string
type KeyCollector ¶
type KeyCollector struct {
// contains filtered or unexported fields
}
func (KeyCollector) GetData ¶
func (k KeyCollector) GetData() (map[string]interface{}, error)
func (KeyCollector) GetLabels ¶
func (k KeyCollector) GetLabels(prefix string) (map[string]string, error)
func (KeyCollector) KeyName ¶
func (k KeyCollector) KeyName() string
type MemoryCollector ¶
type MemoryCollector struct {
Unit float64
}
func (MemoryCollector) GetData ¶
func (m MemoryCollector) GetData() (map[string]interface{}, error)
func (MemoryCollector) GetLabels ¶
func (m MemoryCollector) GetLabels(prefix string) (map[string]string, error)
func (MemoryCollector) KeyName ¶
func (m MemoryCollector) KeyName() string
type OSCollector ¶
type OSCollector struct{}
func (OSCollector) GetData ¶
func (o OSCollector) GetData() (map[string]interface{}, error)
func (OSCollector) GetLabels ¶
func (o OSCollector) GetLabels(prefix string) (map[string]string, error)
func (OSCollector) KeyName ¶
func (o OSCollector) KeyName() string
Click to show internal directories.
Click to hide internal directories.