collector

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysedControllerStatistics added in v1.0.0

type AnalysedControllerStatistics struct {
	ID                   string `json:"controllerId"`
	Label                string
	AverageReadOpSize    float64 `json:"averageReadOpSize"`
	AverageWriteOpSize   float64 `json:"averageWriteOpSize"`
	CombinedResponseTime float64 `json:"combinedResponseTime"`
	ReadResponseTime     float64 `json:"readResponseTime"`
	WriteResponseTime    float64 `json:"writeResponseTime"`
	MaxCpuUtilization    float64 `json:"maxCpuUtilization"`
	CpuAvgUtilization    float64 `json:"cpuAvgUtilization"`
}

type AnalysedDriveStatistics added in v1.0.0

type AnalysedDriveStatistics struct {
	ID                   string  `json:"diskId"`
	AverageReadOpSize    float64 `json:"averageReadOpSize"`
	AverageWriteOpSize   float64 `json:"averageWriteOpSize"`
	CombinedResponseTime float64 `json:"combinedResponseTime"`
	ReadPhysicalIOps     float64 `json:"readPhysicalIOps"`
	ReadResponseTime     float64 `json:"readResponseTime"`
	WritePhysicalIOps    float64 `json:"writePhysicalIOps"`
	WriteResponseTime    float64 `json:"writeResponseTime"`
}

type Battery added in v1.1.0

type Battery struct {
	ID               string `json:"id"`
	TrayID           string
	Slot             string
	Status           string           `json:"status"`
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type CacheMemoryDimm added in v1.1.0

type CacheMemoryDimm struct {
	TrayID           string
	Slot             string
	Status           string           `json:"status"`
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type Collector

type Collector interface {
	// Get new metrics and expose them via prometheus registry.
	Describe(ch chan<- *prometheus.Desc)
	Collect(ch chan<- prometheus.Metric)
}

func NewControllerStatisticsExporter added in v1.0.0

func NewControllerStatisticsExporter(target config.Target, logger log.Logger) Collector

func NewDriveStatisticsExporter

func NewDriveStatisticsExporter(target config.Target, logger log.Logger) Collector

func NewDrivesExporter

func NewDrivesExporter(target config.Target, logger log.Logger) Collector

func NewHardwareInventoryExporter added in v1.1.0

func NewHardwareInventoryExporter(target config.Target, logger log.Logger) Collector

func NewStorageSystemsExporter

func NewStorageSystemsExporter(target config.Target, logger log.Logger) Collector

func NewSystemStatisticsExporter

func NewSystemStatisticsExporter(target config.Target, logger log.Logger) Collector

type Controller added in v1.0.0

type Controller struct {
	ID               string                     `json:"id"`
	PhysicalLocation ControllerPhysicalLocation `json:"physicalLocation"`
	Label            string
}

type ControllerPhysicalLocation added in v1.0.0

type ControllerPhysicalLocation struct {
	Label string `json:"label"`
}

type ControllerStatistics added in v1.0.0

type ControllerStatistics struct {
	ID                              string `json:"controllerId"`
	Label                           string
	TotalIopsServiced               float64 `json:"totalIopsServiced"`
	TotalBytesServiced              float64 `json:"totalBytesServiced"`
	CacheHitsIopsTotal              float64 `json:"cacheHitsIopsTotal"`
	CacheHitsBytesTotal             float64 `json:"cacheHitsBytesTotal"`
	RandomIosTotal                  float64 `json:"randomIosTotal"`
	RandomBytesTotal                float64 `json:"randomBytesTotal"`
	ReadIopsTotal                   float64 `json:"readIopsTotal"`
	ReadBytesTotal                  float64 `json:"readBytesTotal"`
	WriteIopsTotal                  float64 `json:"writeIopsTotal"`
	WriteBytesTotal                 float64 `json:"writeBytesTotal"`
	MirrorIopsTotal                 float64 `json:"mirrorIopsTotal"`
	MirrorBytesTotal                float64 `json:"mirrorBytesTotal"`
	FullStripeWritesBytes           float64 `json:"fullStripeWritesBytes"`
	Raid0BytesTransferred           float64 `json:"raid0BytesTransferred"`
	Raid1BytesTransferred           float64 `json:"raid1BytesTransferred"`
	Raid5BytesTransferred           float64 `json:"raid5BytesTransferred"`
	Raid6BytesTransferred           float64 `json:"raid6BytesTransferred"`
	DdpBytesTransferred             float64 `json:"ddpBytesTransferred"`
	MaxPossibleBpsUnderCurrentLoad  float64 `json:"maxPossibleBpsUnderCurrentLoad"`
	MaxPossibleIopsUnderCurrentLoad float64 `json:"maxPossibleIopsUnderCurrentLoad"`
}

type ControllerStatisticsCollector added in v1.0.0

type ControllerStatisticsCollector struct {
	AverageReadOpSize               *prometheus.Desc
	AverageWriteOpSize              *prometheus.Desc
	CombinedResponseTime            *prometheus.Desc
	ReadResponseTime                *prometheus.Desc
	WriteResponseTime               *prometheus.Desc
	MaxCpuUtilization               *prometheus.Desc
	CpuAvgUtilization               *prometheus.Desc
	TotalIopsServiced               *prometheus.Desc
	TotalBytesServiced              *prometheus.Desc
	CacheHitsIopsTotal              *prometheus.Desc
	CacheHitsBytesTotal             *prometheus.Desc
	RandomIosTotal                  *prometheus.Desc
	RandomBytesTotal                *prometheus.Desc
	ReadIopsTotal                   *prometheus.Desc
	ReadBytesTotal                  *prometheus.Desc
	WriteIopsTotal                  *prometheus.Desc
	WriteBytesTotal                 *prometheus.Desc
	MirrorIopsTotal                 *prometheus.Desc
	MirrorBytesTotal                *prometheus.Desc
	FullStripeWritesBytes           *prometheus.Desc
	Raid0BytesTransferred           *prometheus.Desc
	Raid1BytesTransferred           *prometheus.Desc
	Raid5BytesTransferred           *prometheus.Desc
	Raid6BytesTransferred           *prometheus.Desc
	DdpBytesTransferred             *prometheus.Desc
	MaxPossibleBpsUnderCurrentLoad  *prometheus.Desc
	MaxPossibleIopsUnderCurrentLoad *prometheus.Desc
	// contains filtered or unexported fields
}

func (*ControllerStatisticsCollector) Collect added in v1.0.0

func (c *ControllerStatisticsCollector) Collect(ch chan<- prometheus.Metric)

func (*ControllerStatisticsCollector) Describe added in v1.0.0

func (c *ControllerStatisticsCollector) Describe(ch chan<- *prometheus.Desc)

type ControllersInventory added in v1.0.0

type ControllersInventory struct {
	Controllers []Controller `json:"controllers"`
}

type Drive

type Drive struct {
	ID               string                `json:"id"`
	Status           string                `json:"status"`
	PhysicalLocation DrivePhysicalLocation `json:"physicalLocation"`
	TrayID           string
	Slot             string
}

type DrivePhysicalLocation

type DrivePhysicalLocation struct {
	Slot    int    `json:"slot"`
	TrayRef string `json:"trayRef"`
}

type DriveStatistics

type DriveStatistics struct {
	ID                string  `json:"diskId"`
	IdleTime          float64 `json:"idleTime"`
	OtherOPs          float64 `json:"otherOps"`
	OtherTimeTotal    float64 `json:"otherTimeTotal"`
	ReadBytes         float64 `json:"readBytes"`
	ReadOPs           float64 `json:"readOps"`
	ReadTimeTotal     float64 `json:"readTimeTotal"`
	RecoveredErrors   float64 `json:"recoveredErrors"`
	RetriedIOs        float64 `json:"retriedIos"`
	Timeouts          float64 `json:"timeouts"`
	UnrecoveredErrors float64 `json:"unrecoveredErrors"`
	WriteBytes        float64 `json:"writeBytes"`
	WriteOPs          float64 `json:"writeOps"`
	WriteTimeTotal    float64 `json:"writeTimeTotal"`
	QueueDepthTotal   float64 `json:"queueDepthTotal"`
	RandomIOsTotal    float64 `json:"randomIosTotal"`
	RandomBytesTotal  float64 `json:"randomBytesTotal"`
}

type DriveStatisticsCollector

type DriveStatisticsCollector struct {
	AverageReadOpSize    *prometheus.Desc
	AverageWriteOpSize   *prometheus.Desc
	CombinedResponseTime *prometheus.Desc
	ReadPhysicalIOps     *prometheus.Desc
	ReadResponseTime     *prometheus.Desc
	WritePhysicalIOps    *prometheus.Desc
	WriteResponseTime    *prometheus.Desc
	IdleTime             *prometheus.Desc
	OtherOPs             *prometheus.Desc
	OtherTimeTotal       *prometheus.Desc
	ReadBytes            *prometheus.Desc
	ReadOPs              *prometheus.Desc
	ReadTimeTotal        *prometheus.Desc
	RecoveredErrors      *prometheus.Desc
	RetriedIOs           *prometheus.Desc
	Timeouts             *prometheus.Desc
	UnrecoveredErrors    *prometheus.Desc
	WriteBytes           *prometheus.Desc
	WriteOPs             *prometheus.Desc
	WriteTimeTotal       *prometheus.Desc
	QueueDepthTotal      *prometheus.Desc
	RandomIOsTotal       *prometheus.Desc
	RandomBytesTotal     *prometheus.Desc
	// contains filtered or unexported fields
}

func (*DriveStatisticsCollector) Collect

func (c *DriveStatisticsCollector) Collect(ch chan<- prometheus.Metric)

func (*DriveStatisticsCollector) Describe

func (c *DriveStatisticsCollector) Describe(ch chan<- *prometheus.Desc)

type DrivesCollector

type DrivesCollector struct {
	Status *prometheus.Desc
	// contains filtered or unexported fields
}

func (*DrivesCollector) Collect

func (c *DrivesCollector) Collect(ch chan<- prometheus.Metric)

func (*DrivesCollector) Describe

func (c *DrivesCollector) Describe(ch chan<- *prometheus.Desc)

type DrivesInventory

type DrivesInventory struct {
	Drives []Drive `json:"drives"`
	Trays  []Tray  `json:"trays"`
}

type EseriesCollector

type EseriesCollector struct {
	Collectors map[string]Collector
}

func NewCollector

func NewCollector(target config.Target, logger log.Logger) *EseriesCollector

type Fan added in v1.1.0

type Fan struct {
	ID               string `json:"id"`
	TrayID           string
	Slot             string
	Status           string           `json:"status"`
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type HardwareInventory added in v1.1.0

type HardwareInventory struct {
	Trays            []Tray            `json:"trays"`
	Batteries        []Battery         `json:"batteries"`
	Fans             []Fan             `json:"fans"`
	PowerSupplies    []PowerSupply     `json:"powerSupplies"`
	CacheMemoryDimms []CacheMemoryDimm `json:"cacheMemoryDimms"`
	ThermalSensors   []ThermalSensor   `json:"thermalSensors"`
}

type HardwareInventoryCollector added in v1.1.0

type HardwareInventoryCollector struct {
	BatteryStatus         *prometheus.Desc
	FanStatus             *prometheus.Desc
	PowerSupplyStatus     *prometheus.Desc
	CacheMemoryDimmStatus *prometheus.Desc
	ThermalSensorStatus   *prometheus.Desc
	// contains filtered or unexported fields
}

func (*HardwareInventoryCollector) Collect added in v1.1.0

func (c *HardwareInventoryCollector) Collect(ch chan<- prometheus.Metric)

func (*HardwareInventoryCollector) Describe added in v1.1.0

func (c *HardwareInventoryCollector) Describe(ch chan<- *prometheus.Desc)

type PhysicalLocation added in v1.1.0

type PhysicalLocation struct {
	Slot    int    `json:"slot"`
	TrayRef string `json:"trayRef"`
}

type PowerSupply added in v1.1.0

type PowerSupply struct {
	ID               string `json:"id"`
	TrayID           string
	Slot             string
	Status           string           `json:"status"`
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type StorageSystem

type StorageSystem struct {
	ID     string `json:"id"`
	Status string `json:"status"`
}

type StorageSystemsCollector

type StorageSystemsCollector struct {
	Status *prometheus.Desc
	// contains filtered or unexported fields
}

func (*StorageSystemsCollector) Collect

func (c *StorageSystemsCollector) Collect(ch chan<- prometheus.Metric)

func (*StorageSystemsCollector) Describe

func (c *StorageSystemsCollector) Describe(ch chan<- *prometheus.Desc)

type SystemStatistics

type SystemStatistics struct {
	AverageReadOpSize       float64 `json:"averageReadOpSize"`
	AverageWriteOpSize      float64 `json:"averageWriteOpSize"`
	CombinedHitResponseTime float64 `json:"combinedHitResponseTime"`
	CombinedResponseTime    float64 `json:"combinedResponseTime"`
	CpuAvgUtilization       float64 `json:"cpuAvgUtilization"`
	MaxCpuUtilization       float64 `json:"maxCpuUtilization"`
	ReadHitResponseTime     float64 `json:"readHitResponseTime"`
	ReadPhysicalIOps        float64 `json:"readPhysicalIOps"`
	ReadResponseTime        float64 `json:"readResponseTime"`
	WriteHitResponseTime    float64 `json:"writeHitResponseTime"`
	WritePhysicalIOps       float64 `json:"writePhysicalIOps"`
	WriteResponseTime       float64 `json:"writeResponseTime"`
}

type SystemStatisticsCollector

type SystemStatisticsCollector struct {
	AverageReadOpSize       *prometheus.Desc
	AverageWriteOpSize      *prometheus.Desc
	CombinedHitResponseTime *prometheus.Desc
	CombinedResponseTime    *prometheus.Desc
	CpuAvgUtilization       *prometheus.Desc
	MaxCpuUtilization       *prometheus.Desc
	ReadHitResponseTime     *prometheus.Desc
	ReadPhysicalIOps        *prometheus.Desc
	ReadResponseTime        *prometheus.Desc
	WriteHitResponseTime    *prometheus.Desc
	WritePhysicalIOps       *prometheus.Desc
	WriteResponseTime       *prometheus.Desc
	// contains filtered or unexported fields
}

func (*SystemStatisticsCollector) Collect

func (c *SystemStatisticsCollector) Collect(ch chan<- prometheus.Metric)

func (*SystemStatisticsCollector) Describe

func (c *SystemStatisticsCollector) Describe(ch chan<- *prometheus.Desc)

type ThermalSensor added in v1.1.0

type ThermalSensor struct {
	ID               string `json:"id"`
	TrayID           string
	Slot             string
	Status           string           `json:"status"`
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type Tray

type Tray struct {
	TrayRef string `json:"trayRef"`
	ID      int    `json:"trayId"`
}

Jump to

Keyboard shortcuts

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