ljzsdut
GitHubToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

06 Ping监控、进程监控

本篇介绍两个采集插件,ping和procstat。ping监控就是用于远程探测的,年底夜莺v5最终版会内置nodata的处理逻辑,对机器的监控就不用ping了,不过有的时候,有些机器没法安装agent,这种情况可能就要考虑ping监控了。procstat主要有两个功能,一个是采集进程个数,比如nginx这种多进程模型,会采集总的进程数量,同时对每个单一进程,会采集进程相关的cpu、内存使用情况以及一些资源限制信息等。

ping

ping插件的默认配置如下:

# # Ping given url(s) and return statistics
# [[inputs.ping]]
#   ## Hosts to send ping packets to.
#   urls = ["example.org"]
#
#   ## Method used for sending pings, can be either "exec" or "native".  When set
#   ## to "exec" the systems ping command will be executed.  When set to "native"
#   ## the plugin will send pings directly.
#   ##
#   ## While the default is "exec" for backwards compatibility, new deployments
#   ## are encourag