Documentation ¶
Index ¶
- func CollectData(collectors []Collector) map[string]interface{}
- func GetDefaultDisk(infoData model.InfoData) (string, error)
- func HostLabels(prefix string, collectors []Collector) (map[string]string, error)
- type CPUCollector
- type Collector
- type DiskCollector
- type IopsCollector
- type KeyCollector
- type MemoryCollector
- type OSCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectData ¶
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 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 ¶ added in v0.8.2
type KeyCollector struct {
// contains filtered or unexported fields
}
func (KeyCollector) GetData ¶ added in v0.8.2
func (k KeyCollector) GetData() (map[string]interface{}, error)
func (KeyCollector) GetLabels ¶ added in v0.8.2
func (k KeyCollector) GetLabels(prefix string) (map[string]string, error)
func (KeyCollector) KeyName ¶ added in v0.8.2
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 ¶
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.