metric

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMetricValFormat

func ConvertMetricValFormat(metricKeyArr []string, metricVal [][]interface{}) []interface{}

func MappingMonMetric

func MappingMonMetric(metricName string, metricVal *interface{}) (interface{}, error)

Types

type Cpu

type Cpu struct {
	CpuGuest       float64 `json:"cpu_guest"`
	CpuGuestNice   float64 `json:"cpu_guest_nice"`
	CpuHardIrq     float64 `json:"cpu_hintr"`
	CpuIdle        float64 `json:"cpu_idle"`
	CpuIowait      float64 `json:"cpu_iowait"`
	CpuNice        float64 `json:"cpu_nice"`
	CpuSoftirq     float64 `json:"cpu_sintr"`
	CpuSteal       float64 `json:"cpu_steal"`
	CpuSystem      float64 `json:"cpu_system"`
	CpuUser        float64 `json:"cpu_user"`
	CpuUtilization float64 `json:"cpu_utilization"`
}

Cpu 메트릭

func (Cpu) GetField

func (c Cpu) GetField() []string

type Cpufreq

type Cpufreq struct {
	CpuSpeed float64 `json:"cpu_speed"`
}

func (Cpufreq) GetField

func (c Cpufreq) GetField() []string

type Disk

type Disk struct {
	DiskUtilization string `json:"disk_utilization"`
	DiskTotal       string `json:"disk_total"`
	DiskUsed        string `json:"disk_used"`
	DiskFree        string `json:"disk_free"`
}

Disk 메트릭

func (Disk) GetField

func (d Disk) GetField() []string

type DiskIO

type DiskIO struct {
	DiskReadBytes  string `json:"kb_read"`
	DiskWriteBytes string `json:"kb_written"`
	DIskReadIOPS   int64  `json:"ops_read"`
	DIskWriteIOPS  int64  `json:"ops_write"`
}

DiskIO 메트릭

func (DiskIO) GetField

func (dio DiskIO) GetField() []string

type MCK8SNode added in v0.5.2

type MCK8SNode struct {
	CpuUsage                    int64 `json:"cpu_usage_nanocores"`
	MemUsage                    int64 `json:"memory_usage_bytes"`
	MemAvaiable                 int64 `json:"memory_available_bytes"`
	MemWorkingSet               int64 `json:"memory_working_set_bytes"`
	MemResidentSet              int64 `json:"memory_rss_bytes"`
	NetRXBytes                  int64 `json:"network_rx_bytes"`
	NetRXErrors                 int64 `json:"network_rx_errors"`
	NetTXBytes                  int64 `json:"network_tx_bytes"`
	NetTXErrors                 int64 `json:"network_tx_errors"`
	FSCapacityBytes             int64 `json:"fs_capacity_bytes"`
	FSUsedBytes                 int64 `json:"fs_used_bytes"`
	RuntimeImageFSCapacityBytes int64 `json:"runtime_image_fs_capacity_bytes"`
	RuntimeImageFSUsageBytes    int64 `json:"runtime_image_fs_usage_bytes"`
}

MCK8SNode 메트릭

func (MCK8SNode) GetField added in v0.5.2

func (n MCK8SNode) GetField() []string

type MCK8SPod added in v0.5.2

type MCK8SPod struct {
	CpuUsage       int64 `json:"cpu_usage_nanocores"`
	MemUsage       int64 `json:"memory_usage_bytes"`
	MemWorkingSet  int64 `json:"memory_working_set_bytes"`
	MemResidentSet int64 `json:"memory_rss_bytes"`
	RootFSCapacity int64 `json:"rootfs_capacity_bytes"`
	RootFSUsed     int64 `json:"rootfs_used_bytes"`
	LogsFSCapacity int64 `json:"logsfs_capacity_bytes"`
	LogsFSUsage    int64 `json:"logsfs_usage_bytes"`
	NetRXBytes     int64 `json:"rx_bytes"`
	NetRXErrors    int64 `json:"rx_errors"`
	NetTXBytes     int64 `json:"tx_bytes"`
	NetTXErrors    int64 `json:"tx_errors"`
}

MCK8SPod 메트릭

func (MCK8SPod) GetField added in v0.5.2

func (n MCK8SPod) GetField() []string

type Memory

type Memory struct {
	MemBuffers     float64 `json:"mem_buffers"`
	MemCached      float64 `json:"mem_cached"`
	MemFree        float64 `json:"mem_free"`
	MemShared      float64 `json:"mem_shared"`
	MemTotal       float64 `json:"mem_total"`
	MemUsed        float64 `json:"mem_used"`
	MemUtilization float64 `json:"mem_utilization"`
}

Memory 메트릭

func (Memory) GetField

func (m Memory) GetField() []string

type Network

type Network struct {
	NetBytesIn   int64 `json:"bytes_in"`
	NetBytesOut  int64 `json:"bytes_out"`
	NetPacketIn  int64 `json:"pkts_in"`
	NetPacketOut int64 `json:"pkts_out"`
}

Network 메트릭

func (Network) GetField

func (n Network) GetField() []string

Jump to

Keyboard shortcuts

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