storage

package
v0.0.0-...-3283bf7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(parentPath string, cc *common.CollectorContext)

Collect collects metrics for storage controllers

func Describe

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

Describe describes all metrics for the storage package

Types

type DiskDrive

type DiskDrive struct {
	MediaType  string        `json:"MediaType"`
	Model      string        `json:"Model"`
	Location   Location      `json:"Location"`
	CapacityB  uint64        `json:"CapacityBytes"`
	CapacityMB uint64        `json:"CapacityMiB"`
	Status     common.Status `json:"Status"`
}

func (*DiskDrive) CapacityBytes

func (d *DiskDrive) CapacityBytes() float64

type Location

type Location string

func (*Location) UnmarshalJSON

func (f *Location) UnmarshalJSON(data []byte) error

type LocationInfo

type LocationInfo struct {
	Info string `json:"Info"`
}

type StorageInfo

type StorageInfo struct {
	Drives []common.Member `json:"Drives"`
}

Jump to

Keyboard shortcuts

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