cpu

package
v0.0.0-...-5655933 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 6 Imported by: 0

README

cpu

CPU 采集插件很简单,自动采集本机 CPU 的使用率、空闲率等等,默认采集的是整机的,如果想采集单核的,就开启这个配置:

collect_per_cpu = true

其中 CPU 使用率的指标名字是 cpu_usage_active

监控大盘

该插件没有单独的监控大盘,OS 的监控大盘统一放到 system 下面了

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUStats

type CPUStats struct {
	config.PluginConfig
	CollectPerCPU bool `toml:"collect_per_cpu"`
	// contains filtered or unexported fields
}

func (*CPUStats) Clone

func (c *CPUStats) Clone() inputs.Input

func (*CPUStats) Gather

func (c *CPUStats) Gather(slist *types.SampleList)

func (*CPUStats) Name

func (c *CPUStats) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL