Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version, GitCommit, and BuildTime are set via ldflags during build Version = "dev" GitCommit = "unknown" BuildTime = "unknown" )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately.
func GetVersionInfo ¶ added in v0.0.3
func GetVersionInfo() string
GetVersionInfo returns formatted version information
Types ¶
type ContainerInfo ¶
type ContainerStats ¶
type ContainerStats struct {
Name string
CPUPercent string
MemUsage string
MemPercent string
NetIO string
BlockIO string
PIDs string
}
ContainerStats represents resource usage for a single container
type DiskIOMetrics ¶
type DiskMetrics ¶
type LoadAvgMetrics ¶
type MemoryMetrics ¶
type MetricsData ¶
type MetricsData struct {
Timestamp string `json:"timestamp"`
CPUPercent string `json:"cpu_percent"`
Memory MemoryMetrics `json:"memory"`
Disk DiskMetrics `json:"disk"`
Network NetworkMetrics `json:"network"`
DiskIO DiskIOMetrics `json:"disk_io"`
UptimeSeconds int `json:"uptime_seconds"`
LoadAverage LoadAvgMetrics `json:"load_average"`
}
MetricsData represents the JSON structure returned by the monitoring agent
type NetworkMetrics ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.