collectors

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Metric name defines
	PoolMetadata              = "flashsystem_pool_metadata"
	PoolHealth                = "flashsystem_pool_health"
	PoolWarningThreshold      = "flashsystem_capacity_warning_threshold"
	PoolCapacityUsable        = "flashsystem_pool_capacity_usable_bytes"
	PoolCapacityUsed          = "flashsystem_pool_capacity_used_bytes"
	PoolPhysicalCapacity      = "flashsystem_pool_capacity_bytes"
	PoolLogicalCapacityUsable = "flashsystem_pool_logical_capacity_usable_bytes"
	PoolLogicalCapacity       = "flashsystem_pool_logical_capacity_bytes"
	PoolLogicalCapacityUsed   = "flashsystem_pool_logical_capacity_used_bytes"
	PoolEfficiencySavings     = "flashsystem_pool_savings_bytes"

	// Pool state
	StateOnline   = "online"
	StateDegraded = "degraded"
	StateOffline  = "offline"

	// MDisk modes
	ArrayMode = "array"

	InvalidVal = float64(-1)
)
View Source
const (
	DataReductionKey           = "data_reduction"
	MdiskIdKey                 = "id"
	MdiskEffectiveUsedCapacity = "effective_used_capacity"
	ParentMdiskIdKey           = "parent_mdisk_grp_id"
	MdiskGroupNameKey          = "mdisk_grp_name"
	MdiskNameKey               = "name"
	PoolStatusKey              = "status"
	PhysicalFreeKey            = "physical_free_capacity"
	ReclaimableKey             = "reclaimable_capacity"
	PhysicalCapacityKey        = "physical_capacity"
	OverProvisionedKey         = "over_provisioned"
	CompressionEnabledKey      = "compression_active"
	CapacityKey                = "capacity"
	FreeCapacityKey            = "free_capacity"
	ChildPoolCapacityKey       = "child_mdisk_grp_capacity"
	ControllerNameKey          = "controller_name"
	DiskModekey                = "mode"
	RealCapacityKey            = "real_capacity"
	UsedBeforeDedupKey         = "used_capacity_before_reduction"
	UsedAfterDedupKey          = "used_capacity_after_reduction"
	DedupSavingsKey            = "deduplication_capacity_saving"
	VirtualCapacityKey         = "virtual_capacity"
	UncompressedKey            = "compression_uncompressed_capacity"
	CompressedKey              = "compression_compressed_capacity"
	CapacityWarningThreshold   = "warning"
)

Interested keys

View Source
const (
	// Column name for performance metrics
	VdiskReadBW       = "vdisk_r_mb"
	VdiskWriteBW      = "vdisk_w_mb"
	VdiskReadIOPS     = "vdisk_r_io"
	VdiskWriteIOPS    = "vdisk_w_io"
	VdiskLatency      = "vdisk_ms"
	VdiskReadLatency  = "vdisk_r_ms"
	VdiskWriteLatency = "vdisk_w_ms"

	VersionKey               = "code_level"
	ModelKey                 = "product_name"
	PhysicalTotalCapacityKey = "physical_capacity"
	PhysicalFreeCapacityKey  = "physical_free_capacity"

	// Metric name shown outside
	SystemReadIOPS     = "flashsystem_subsystem_rd_iops"
	SystemWriteIOPS    = "flashsystem_subsystem_wr_iops"
	SystemReadBytes    = "flashsystem_subsystem_rd_bytes"
	SystemWriteBytes   = "flashsystem_subsystem_wr_bytes"
	SystemLatency      = "flashsystem_subsystem_latency_seconds"
	SystemReadLatency  = "flashsystem_subsystem_rd_latency_seconds"
	SystemWriteLatency = "flashsystem_subsystem_wr_latency_seconds"

	SystemMetadata = "flashsystem_subsystem_metadata"
	SystemHealth   = "flashsystem_subsystem_health"
	SystemResponse = "flashsystem_subsystem_response"

	SystemPhysicalTotalCapacity = "flashsystem_subsystem_physical_total_capacity_bytes"
	SystemPhysicalFreeCapacity  = "flashsystem_subsystem_physical_free_capacity_bytes"
	SystemPhysicalUsedCapacity  = "flashsystem_subsystem_physical_used_capacity_bytes"
)

Variables

View Source
var (

	// StorageSystemMetricsMap defines mapping
	StorageSystemMetricsMap = map[string]MetricLabel{
		SystemPhysicalTotalCapacity: {"System physical total capacity (byte)", subsystemCommonLabel},
		SystemPhysicalFreeCapacity:  {"System physical free capacity (byte)", subsystemCommonLabel},
		SystemPhysicalUsedCapacity:  {"System physical used capacity (byte)", subsystemCommonLabel},
	}
)

Functions

func GetPoolReclaimablePhysicalCapacity added in v1.3.0

func GetPoolReclaimablePhysicalCapacity(pool PoolInfo) (float64, error)

func IsCompressionEnabled added in v1.3.0

func IsCompressionEnabled(info PoolInfo) bool

func IsPoolArrayMode added in v1.3.0

func IsPoolArrayMode(info PoolInfo) bool

func IsPoolFromInternalStorage added in v1.3.0

func IsPoolFromInternalStorage(info PoolInfo) bool

Types

type MetricLabel

type MetricLabel struct {
	Name   string
	Labels []string
}

type PerfCollector

type PerfCollector struct {
	// contains filtered or unexported fields
}

func NewPerfCollector

func NewPerfCollector(systems map[string]*rest.FSRestClient, namespace string) (*PerfCollector, error)

func (*PerfCollector) Collect

func (f *PerfCollector) Collect(ch chan<- prometheus.Metric)

func (*PerfCollector) Describe

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

type Pool added in v1.3.0

type Pool map[string]interface{}

type PoolInfo

type PoolInfo struct {
	SystemName               string
	PoolId                   int
	PoolName                 string
	StorageClass             string
	State                    string
	CapacityWarningThreshold string
	IsInternalStorage        bool
	IsArrayMode              bool
	PoolMDiskGrpInfo         Pool
	IsCompressionEnabled     bool
	PoolMDisksList           []rest.SingleMDiskInfo
}

type SystemInfo

type SystemInfo struct {
	Name    string
	Vendor  string
	Model   string
	Version string
	// contains filtered or unexported fields
}

type SystemName

type SystemName struct {
	Name string
}

Jump to

Keyboard shortcuts

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