Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2021 v1.0.1 May 29, 2015 Changes in this version + type CgroupStat struct — linux/amd64 + Cgroups map[string]*PerCgroupStat + Mountpoint string + func NewCgroupStat(m *metrics.MetricContext, Step time.Duration) *CgroupStat + func (c *CgroupStat) Collect(mountpoint string) + type MemStat struct — darwin/amd64, linux/amd64 + Active *metrics.Gauge + Active_anon *metrics.Gauge + Active_file *metrics.Gauge + AnonHugePages *metrics.Gauge + AnonPages *metrics.Gauge + Bounce *metrics.Gauge + Buffers *metrics.Gauge + Cached *metrics.Gauge + CommitLimit *metrics.Gauge + Committed_AS *metrics.Gauge + DirectMap2M *metrics.Gauge + DirectMap4k *metrics.Gauge + Dirty *metrics.Gauge + HardwareCorrupted *metrics.Gauge + HugePages_Free *metrics.Gauge + HugePages_Rsvd *metrics.Gauge + HugePages_Surp *metrics.Gauge + HugePages_Total *metrics.Gauge + Hugepagesize *metrics.Gauge + Inactive *metrics.Gauge + Inactive_anon *metrics.Gauge + Inactive_file *metrics.Gauge + KernelStack *metrics.Gauge + Mapped *metrics.Gauge + MemFree *metrics.Gauge + MemTotal *metrics.Gauge + Mlocked *metrics.Gauge + NFS_Unstable *metrics.Gauge + PageTables *metrics.Gauge + Pagesize C.vm_size_t + Purgeable *metrics.Gauge + RawFree *metrics.Gauge + RawTotal *metrics.Gauge + SReclaimable *metrics.Gauge + SUnreclaim *metrics.Gauge + Shmem *metrics.Gauge + Slab *metrics.Gauge + SwapCached *metrics.Gauge + SwapFree *metrics.Gauge + SwapTotal *metrics.Gauge + Unevictable *metrics.Gauge + VmallocChunk *metrics.Gauge + VmallocTotal *metrics.Gauge + VmallocUsed *metrics.Gauge + Wired *metrics.Gauge + Writeback *metrics.Gauge + WritebackTmp *metrics.Gauge + func New(m *metrics.MetricContext, Step time.Duration) *MemStat + func (s *MemStat) Collect() + func (s *MemStat) Free() float64 + func (s *MemStat) Total() float64 + func (s *MemStat) Usage() float64 + type PerCgroupStat struct — linux/amd64 + Active_anon *metrics.Gauge + Active_file *metrics.Gauge + Cache *metrics.Gauge + Hierarchical_memory_limit *metrics.Gauge + Hierarchical_memsw_limit *metrics.Gauge + Inactive_anon *metrics.Gauge + Inactive_file *metrics.Gauge + Mapped_file *metrics.Gauge + Pgpgin *metrics.Gauge + Pgpgout *metrics.Gauge + Rss *metrics.Gauge + Soft_Limit_In_Bytes *metrics.Gauge + Swap *metrics.Gauge + Total_active_anon *metrics.Gauge + Total_active_file *metrics.Gauge + Total_cache *metrics.Gauge + Total_inactive_anon *metrics.Gauge + Total_inactive_file *metrics.Gauge + Total_mapped_file *metrics.Gauge + Total_pgpgin *metrics.Gauge + Total_pgpgout *metrics.Gauge + Total_rss *metrics.Gauge + Total_swap *metrics.Gauge + Total_unevictable *metrics.Gauge + Unevictable *metrics.Gauge + UsageInBytes *metrics.Gauge + func NewPerCgroupStat(m *metrics.MetricContext, path string, mp string) *PerCgroupStat + func (s *PerCgroupStat) Collect() + func (s *PerCgroupStat) SoftLimit() float64 + func (s *PerCgroupStat) Unregister() + func (s *PerCgroupStat) Usage() float64