点击上方"数据与人", 右上角选择“设为星标”
分享干货,共同成长!


1. Linux运维基础采集项
CPU
Load
内存
磁盘
IO
网络相关
内核参数
ss 统计输出
端口采集
核心服务的进程存活信息采集
关键业务进程资源消耗
NTP offset采集
DNS解析采集
2. CPU相关采集项
cpu.idle:Percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request.
cpu.busy:与cpu.idle相对,他的值等于100减去cpu.idle。
cpu.guest:Percentage of time spent by the CPU or CPUs to run a virtual processor.
cpu.iowait:Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.
cpu.irq:Percentage of time spent by the CPU or CPUs to service hardware interrupts.
cpu.softirq:Percentage of time spent by the CPU or CPUs to service software interrupts.
cpu.nice:Percentage of CPU utilization that occurred while executing at the user level with nice priority.
cpu.steal:Percentage of time spent in involuntary wait by the virtual CPU or CPUs while the hypervisor was servicing another virtual processor.
cpu.system:Percentage of CPU utilization that occurred while executing at the system level (kernel).
cpu.user:Percentage of CPU utilization that occurred while executing at the user level (application).
cpu.cnt:cpu核数。
cpu.switches:cpu上下文切换次数,计数器类型。
3. 磁盘相关采集项
df.bytes.free:磁盘可用量,int64
df.bytes.free.percent:磁盘可用量占总量的百分比,float64,比如32.1
df.bytes.total:磁盘总大小,int64
df.bytes.used:磁盘已用大小,int64
df.bytes.used.percent:磁盘已用大小占总量的百分比,float64
df.inodes.total:inode总数,int64
df.inodes.free:可用inode数目,int64
df.inodes.free.percent:可用inode占比,float64
df.inodes.used:已用的inode数据,int64
df.inodes.used.percent:已用inode占比,float64
4. megacli工具输出
sys.disk.lsiraid.pd.Media_Error_Count:这个及以下三个指标目前仅作为数据收集,不一定意味磁盘损坏(只是表示损坏概率变大)
sys.disk.lsiraid.pd.Other_Error_Count
sys.disk.lsiraid.pd.Predictive_Failure_Count
sys.disk.lsiraid.pd.Drive_Temperature
sys.disk.lsiraid.pd.Firmware_state:如果值不为0,则此物理磁盘出现问题
sys.disk.lsiraid.vd.cache_policy:如果值不为0,表示此逻辑磁盘缓存策略和设置不符
sys.disk.lsiraid.vd.state:如果值不为0,表示此逻辑磁盘出现问题
5. SMART工具输出
sys.disk.smart.Reallocated_Sector_Ct
sys.disk.smart.Spin_Retry_Count
sys.disk.smart.Reallocated_Event_Count
sys.disk.smart.Current_Pending_Sector
sys.disk.smart.Offline_Uncorrectable
sys.disk.smart.Temperature_Celsius
6. 分区读写监控
sys.disk.rw:如果值不为0,表明此分区读写出现问题
7. IO相关采集项
disk.io.ios_in_progress:Number of actual I/O requests currently in flight.
disk.io.msec_read:Total number of ms spent by all reads.
disk.io.msec_total:Amount of time during which ios_in_progress >= 1.
disk.io.msec_weighted_total:Measure of recent I/O completion time and backlog.
disk.io.msec_write:Total number of ms spent by all writes.
disk.io.read_merged:Adjacent read requests merged in a single req.
disk.io.read_requests:Total number of reads completed successfully.
disk.io.read_sectors:Total number of sectors read successfully.
disk.io.write_merged:Adjacent write requests merged in a single req.
disk.io.write_requests:total number of writes completed successfully.
disk.io.write_sectors:total number of sectors written successfully.
disk.io.read_bytes:单位是byte的数字
disk.io.write_bytes:单位是byte的数字
disk.io.avgrq_sz:下面几个值就是iostat -x 1看到的值
disk.io.avgqu-sz
disk.io.await
disk.io.svctm
disk.io.util:是个百分数,比如56.43,表示56.43%
8. 机器负载相关采集项
load.1min
load.5min
load.15min
9. 内存相关采集项
mem.memtotal:内存总大小
mem.memused:使用了多少内存
mem.memused.percent:使用的内存占比
mem.memfree
mem.memfree.percent
mem.swaptotal:swap总大小
mem.swapused:使用了多少swap
mem.swapused.percent:使用的swap的占比
mem.swapfree
mem.swapfree.percent
10. 网络相关采集项
net.if.in.bytes
net.if.in.compressed
net.if.in.dropped
net.if.in.errors
net.if.in.fifo.errs
net.if.in.frame.errs
net.if.in.multicast
net.if.in.packets
net.if.out.bytes
net.if.out.carrier.errs
net.if.out.collisions
net.if.out.compressed
net.if.out.dropped
net.if.out.errors
net.if.out.fifo.errs
net.if.out.packets
net.if.total.bytes
net.if.total.dropped
net.if.total.errors
net.if.total.packets
11. 端口采集项
net.port.listen
12. 机器内核配置
kernel.maxfiles:读取的/proc/sys/fs/file-max
kernel.files.allocated:读取的/proc/sys/fs/file-nr第一个Field
kernel.files.left:值=kernel.maxfiles-kernel.files.allocated
kernel.maxproc:读取的/proc/sys/kernel/pid_max
13. ntp采集项
sys.ntp.offset:本机偏移时间,单位为ms,值过大或者为0则表明有异常,需要报警
14. 进程监控
proc.num:判断某个进程的数目,这里需要分两个场景,一种是根据进程的名字来判定,比如name=sshd;另外一种是根据cmdline来判定,比如Java的应用进程名可能都是java,根据第一种情况没法做区分,此时可以配置cmdline,如cmdline=./falcon_agent-c./cfg.ini
15. 进程资源监控
process.cpu.all:进程和它的子进程使用的sys+user的cpu,单位是jiffies
process.cpu.sys:进程和它的子进程使用的sys cpu,单位是jiffies
process.cpu.user:进程和它的子进程使用的user cpu,单位是jiffies
process.swap:进程和它的子进程使用的swap,单位是page
process.fd:进程使用的文件描述符个数
process.mem:进程占用内存,单位byte
16. ss命令输出
ss.orphaned
ss.closed
ss.timewait
ss.slabinfo.timewait
ss.synrecv
ss.estab





