Documentation ¶
Index ¶
- func IPSecEnabled(conn PromConnect, start time.Time, end time.Time) (bool, error)
- func NodeMTU(conn PromConnect) (int, error)
- func OCPversion(conn PromConnect, start time.Time, end time.Time) string
- func Platform(conn PromConnect) string
- func PromCheck(conn PromConnect) bool
- type Details
- type NodeCPU
- type NodeInfo
- type PodCPU
- type PodValues
- type PromConnect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPSecEnabled ¶
IPSecEnabled checks if IPsec
func OCPversion ¶
OCPversion returns the Cluster version
func PromCheck ¶
func PromCheck(conn PromConnect) bool
PromCheck will do a simple query, discard the results
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 PromConnect ¶
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.