Documentation
¶
Index ¶
Constants ¶
View Source
const ( RodanServerPort = 9102 NodeMemoryPath = "/node/memory" NodeCgroupMemoryPath = "/node/qosgroupmem" NumaMemoryPath = "/node/numastat" NodeCPUPath = "/node/nodecpu" NodeSysctlPath = "/node/sysctl" ContainerCPUPath = "/container/cgcpu" ContainerCgroupMemoryPath = "/container/cgmem" ContainerNumaStatPath = "/container/cgnumastat" ContainerLoadPath = "/container/loadavg" ContainerCghardwarePath = "/container/cghardware" )
Variables ¶
View Source
var MetricsMap = map[string]map[string]string{ NodeMemoryPath: { "memory_memtotal": consts.MetricMemTotalSystem, "memory_memfree": consts.MetricMemFreeSystem, "memory_memused": consts.MetricMemUsedSystem, "memory_cached": consts.MetricMemPageCacheSystem, "memory_buffers": consts.MetricMemBufferSystem, "memory_pgsteal_kswapd": consts.MetricMemKswapdstealSystem, }, NodeCgroupMemoryPath: { "qosgroupmem_besteffort_memory_rss": consts.MetricMemRssCgroup, "qosgroupmem_besteffort_memory_usage": consts.MetricMemUsageCgroup, "qosgroupmem_burstable_memory_rss": consts.MetricMemRssCgroup, "qosgroupmem_burstable_memory_usage": consts.MetricMemUsageCgroup, }, NumaMemoryPath: { "memtotal": consts.MetricMemTotalNuma, "memfree": consts.MetricMemFreeNuma, }, NodeCPUPath: { "usage": consts.MetricCPUUsageRatio, "sched_wait": consts.MetricCPUSchedwait, }, NodeSysctlPath: { "sysctl_vm_watermark_scale_factor": consts.MetricMemScaleFactorSystem, }, ContainerCPUPath: { "cgcpu_usage": consts.MetricCPUUsageContainer, }, ContainerCgroupMemoryPath: { "cgmem_total_shmem": consts.MetricMemShmemContainer, "cgmem_total_rss": consts.MetricMemRssContainer, "cgmem_total_cache": consts.MetricMemCacheContainer, }, ContainerLoadPath: { "loadavg_nrrunning": consts.MetricCPUNrRunnableContainer, "loadavg_loadavg1": consts.MetricLoad1MinContainer, "loadavg_loadavg5": consts.MetricLoad5MinContainer, "loadavg_loadavg15": consts.MetricLoad15MinContainer, }, ContainerNumaStatPath: { "filepage": consts.MetricsMemFilePerNumaContainer, }, ContainerCghardwarePath: { "cghardware_cycles": consts.MetricCPUCyclesContainer, "cghardware_instructions": consts.MetricCPUInstructionsContainer, }, }
read only
Functions ¶
Types ¶
type ContainerResponse ¶
type CoreCPUResponse ¶
type CoreCPUResponse CellList
type NUMAMemoryResponse ¶
type NUMAMemoryResponse CellList
type NodeCgroupMemoryResponse ¶
type NodeCgroupMemoryResponse CellList
type NodeMemoryResponse ¶
type NodeMemoryResponse CellList
type NodeSysctlResponse ¶
type NodeSysctlResponse CellList
Click to show internal directories.
Click to hide internal directories.