memory

package
v0.0.0-...-c4b98d2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

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

Collect collects metrics for memory modules

func Describe

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

Describe describes all metrics for the memory package

Types

type Memory

type Memory struct {
	MemorySummary struct {
		Status struct {
			HealthRollUp string `json:"HealthRollUp"`
		} `json:"Status"`
		TotalSystemMemoryGiB uint64 `json:"TotalSystemMemoryGiB"`
	} `json:"MemorySummary"`
}

type MemoryDIMM

type MemoryDIMM struct {
	Name       string `json:"Name"`
	DIMMStatus string `json:"DIMMStatus"`
	SizeMB     uint64 `json:"SizeMB"`
}

Jump to

Keyboard shortcuts

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