Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedStat ¶
type AggregatedStats ¶
type AggregatedStats []AggregatedStat
type CPUUsage ¶
type CPUUsage struct {
// Total CPU usage.
// Units: nanoseconds
Total uint64 `json:"total"`
// Per CPU/core usage of the container.
// Unit: nanoseconds.
PerCPU []uint64 `json:"per_cpu_usage,omitempty"`
// Time spent in user space.
// Unit: nanoseconds
User uint64 `json:"user"`
// Time spent in kernel space.
// Unit: nanoseconds
System uint64 `json:"system"`
}
type ContainerStatsHandler ¶
type ContainerStatsHandler struct {
}
type DiskIoStats ¶
type DiskIoStats struct {
IoServiceBytes []PerDiskStats `json:"io_service_bytes,omitempty"`
}
type DockerStats ¶
type DockerStats struct {
Read time.Time `json:"read"`
PidsStats struct {
Current int64 `json:"current"`
} `json:"pids_stats"`
Networks map[string]struct {
RxBytes int64 `json:"rx_bytes"`
RxDropped int64 `json:"rx_dropped"`
RxErrors int64 `json:"rx_errors"`
RxPackets int64 `json:"rx_packets"`
TxBytes int64 `json:"tx_bytes"`
TxDropped int64 `json:"tx_dropped"`
TxErrors int64 `json:"tx_errors"`
TxPackets int64 `json:"tx_packets"`
} `json:"networks"`
BlkioStats struct {
IoServiceBytesRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_service_bytes_recursive"`
IoServicedRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_serviced_recursive"`
IoQueueRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_queue_recursive"`
IoServiceTimeRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_service_time_recursive"`
IoWaitTimeRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_wait_time_recursive"`
IoMergedRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_merged_recursive"`
IoTimeRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"io_time_recursive"`
SectorsRecursive []struct {
Major int64 `json:"major"`
Minor int64 `json:"minor"`
Op string `json:"op"`
Value int64 `json:"value"`
} `json:"sectors_recursive"`
} `json:"blkio_stats"`
MemoryStats struct {
Stats struct {
TotalPgmajfault int64 `json:"total_pgmajfault"`
Cache int64 `json:"cache"`
MappedFile int64 `json:"mapped_file"`
TotalInactiveFile int64 `json:"total_inactive_file"`
Pgpgout int64 `json:"pgpgout"`
Rss int64 `json:"rss"`
TotalMappedFile int64 `json:"total_mapped_file"`
Writeback int64 `json:"writeback"`
Unevictable int64 `json:"unevictable"`
Pgpgin int64 `json:"pgpgin"`
TotalUnevictable int64 `json:"total_unevictable"`
Pgmajfault int64 `json:"pgmajfault"`
TotalRss int64 `json:"total_rss"`
TotalRssHuge int64 `json:"total_rss_huge"`
TotalWriteback int64 `json:"total_writeback"`
TotalInactiveAnon int64 `json:"total_inactive_anon"`
RssHuge int64 `json:"rss_huge"`
HierarchicalMemoryLimit uint64 `json:"hierarchical_memory_limit"`
TotalPgfault int64 `json:"total_pgfault"`
TotalActiveFile int64 `json:"total_active_file"`
ActiveAnon int64 `json:"active_anon"`
TotalActiveAnon int64 `json:"total_active_anon"`
TotalPgpgout int64 `json:"total_pgpgout"`
TotalCache int64 `json:"total_cache"`
InactiveAnon int64 `json:"inactive_anon"`
ActiveFile int64 `json:"active_file"`
Pgfault int64 `json:"pgfault"`
InactiveFile int64 `json:"inactive_file"`
TotalPgpgin int64 `json:"total_pgpgin"`
} `json:"stats"`
MaxUsage int64 `json:"max_usage"`
Usage int64 `json:"usage"`
Failcnt int64 `json:"failcnt"`
Limit int64 `json:"limit"`
} `json:"memory_stats"`
CPUStats struct {
CPUUsage struct {
PercpuUsage []int64 `json:"percpu_usage"`
UsageInUsermode int64 `json:"usage_in_usermode"`
TotalUsage int64 `json:"total_usage"`
UsageInKernelmode int64 `json:"usage_in_kernelmode"`
} `json:"cpu_usage"`
SystemCPUUsage int64 `json:"system_cpu_usage"`
ThrottlingData struct {
Periods int64 `json:"periods"`
ThrottledPeriods int64 `json:"throttled_periods"`
ThrottledTime int64 `json:"throttled_time"`
} `json:"throttling_data"`
} `json:"cpu_stats"`
PrecpuStats struct {
CPUUsage struct {
PercpuUsage []int64 `json:"percpu_usage"`
UsageInUsermode int64 `json:"usage_in_usermode"`
TotalUsage int64 `json:"total_usage"`
UsageInKernelmode int64 `json:"usage_in_kernelmode"`
} `json:"cpu_usage"`
SystemCPUUsage int64 `json:"system_cpu_usage"`
ThrottlingData struct {
Periods int64 `json:"periods"`
ThrottledPeriods int64 `json:"throttled_periods"`
ThrottledTime int64 `json:"throttled_time"`
} `json:"throttling_data"`
} `json:"precpu_stats"`
}
func FromString ¶
func FromString(rawstring string) (DockerStats, error)
type HostStatsHandler ¶
type HostStatsHandler struct {
}
type InterfaceStats ¶
type InterfaceStats struct {
// The name of the interface.
Name string `json:"name"`
// Cumulative count of bytes received.
RxBytes uint64 `json:"rx_bytes"`
// Cumulative count of packets received.
RxPackets uint64 `json:"rx_packets"`
// Cumulative count of receive errors encountered.
RxErrors uint64 `json:"rx_errors"`
// Cumulative count of packets dropped while receiving.
RxDropped uint64 `json:"rx_dropped"`
// Cumulative count of bytes transmitted.
TxBytes uint64 `json:"tx_bytes"`
// Cumulative count of packets transmitted.
TxPackets uint64 `json:"tx_packets"`
// Cumulative count of transmit errors encountered.
TxErrors uint64 `json:"tx_errors"`
// Cumulative count of packets dropped while transmitting.
TxDropped uint64 `json:"tx_dropped"`
}
type MemoryStats ¶
type MemoryStats struct {
// Current memory usage, this includes all memory regardless of when it was
// accessed.
// Units: Bytes.
Usage uint64 `json:"usage"`
}
type NetworkStats ¶
type NetworkStats struct {
InterfaceStats
Interfaces []InterfaceStats `json:"interfaces,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.