metrics

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cndev        = "cndev"
	PodResources = "podresources"
	Cnpapi       = "cnpapi"
	Host         = "host"

	Temperature   = "temperature"
	BoardHealth   = "board_health"
	MemTotal      = "physical_memory_total"
	MemUsed       = "physical_memory_used"
	MemUtil       = "memory_utilization"
	BoardUtil     = "board_utilization"
	CoreUtil      = "core_utilization"
	FanSpeed      = "fan_speed"
	BoardPower    = "board_power"
	BoardCapacity = "board_capacity"
	BoardUsage    = "board_usage"
	BoardVersion  = "board_version"

	BoardAllocated         = "board_allocated"
	MLUContainer           = "mlu_container"
	ContainerMLUUtil       = "container_mlu_utilization"
	ContainerMLUVFUtil     = "container_mlu_vf_utilization"
	ContainerMLUMemUtil    = "container_mlu_memory_utilization"
	ContainerMLUBoardPower = "container_mlu_board_power"

	PCIeRead     = "pcie_read"
	PCIeWrite    = "pcie_write"
	DramRead     = "dram_read"
	DramWrite    = "dram_write"
	MLULinkRead  = "mlulink_read"
	MLULinkWrite = "mlulink_write"

	CPUTotal    = "cpu_total"
	CPUIdle     = "cpu_idle"
	MemoryTotal = "memory_total"
	MemoryFree  = "memory_free"

	Slot     = "slot"
	Model    = "model"
	MluType  = "mluType"
	SN       = "sn"
	Hostname = "nodeName"
	Cluster  = "cluster"
	Core     = "core"
	MCU      = "mcu"
	Driver   = "driver"

	Namespace = "namespace"
	Pod       = "pod"
	Container = "container"
	VFID      = "vfID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf map[string]Metrics

func GetOrDie

func GetOrDie(path string) Conf

type Labels

type Labels map[string]string

func (Labels) GetKeys

func (l Labels) GetKeys() []string

type Metric

type Metric struct {
	Name   string `yaml:"name"`
	Help   string `yaml:"help"`
	Labels Labels `yaml:"labels"`
}

type Metrics

type Metrics map[string]Metric

Jump to

Keyboard shortcuts

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