Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Details ¶
type Details struct { Metric struct { Kernel string `json:"kernel_version"` Kubelet string `json:"kubelet_version"` } }
Details stores the node details
func NodeDetails ¶
func NodeDetails(conn PromConnect) Details
NodeDetails returns the Details of the nodes. Only returning a single node info.
type NodeCPU ¶
type NodeCPU struct { Idle float64 `json:"idleCPU"` User float64 `json:"userCPU"` Steal float64 `json:"stealCPU"` System float64 `json:"systemCPU"` Nice float64 `json:"niceCPU"` Irq float64 `json:"irqCPU"` Softirq float64 `json:"softCPU"` Iowait float64 `json:"ioCPU"` }
NodeCPU stores CPU information for a specific Node
func QueryNodeCPU ¶
QueryNodeCPU will return all the CPU usage information for a given node
type NodeInfo ¶
type NodeInfo struct { IP string `json:"ip"` NodeName string `json:"nodeName"` corev1.NodeSystemInfo }
NodeInfo stores the node metadata like IP and Hostname
type PromConnect ¶
type PromConnect struct { URL string Token string Client *prometheus.Prometheus Verify bool OpenShift bool }
PromConnect stores the prom information
func Discover ¶
func Discover() (PromConnect, bool)
Discover is to find Prometheus and generate an auth token if necessary.
Click to show internal directories.
Click to hide internal directories.