From fb0cd3a5932a345b024cd9131d956966a15665b7 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Mon, 13 Jun 2022 16:35:36 +0800 Subject: [PATCH] add some README doc --- conf/input.ntp/ntp.toml | 2 +- inputs/netstat/README.md | 7 +++++++ inputs/ntp/README.md | 11 +++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 inputs/netstat/README.md create mode 100644 inputs/ntp/README.md diff --git a/conf/input.ntp/ntp.toml b/conf/input.ntp/ntp.toml index a186475..2bd00eb 100644 --- a/conf/input.ntp/ntp.toml +++ b/conf/input.ntp/ntp.toml @@ -2,4 +2,4 @@ # interval = 15 # # ntp servers -# ntp_servers = ["ntp1.aliyun.com"] +# ntp_servers = ["ntp.aliyun.com"] diff --git a/inputs/netstat/README.md b/inputs/netstat/README.md new file mode 100644 index 0000000..ca1e475 --- /dev/null +++ b/inputs/netstat/README.md @@ -0,0 +1,7 @@ +# netstat + +该插件采集网络连接情况,比如有多少 time_wait 连接,多少 established 连接 + +# 监控大盘 + +该插件没有单独的监控大盘,OS 的监控大盘统一放到 system 下面了 \ No newline at end of file diff --git a/inputs/ntp/README.md b/inputs/ntp/README.md new file mode 100644 index 0000000..5b62bec --- /dev/null +++ b/inputs/ntp/README.md @@ -0,0 +1,11 @@ +# ntp + +ntp 插件用于计算时间偏移。生产环境所有的机器,都应该是一致的时间,如果有些机器时间滞后,有些机器时间超前,在一些分布式系统中会是非常严重的问题。所有的大型互联网公司,一定会在机器交付给业务方之前,就由系统运维人员统一做好了时间调整,并启用 ntpd 或 chrony + +## 监控手段 + +监控机器时间偏移量,只需要给出 ntp 服务端地址,Categraf 就会周期性去请求,对比本机时间,得到偏移量,监控指标是 ntp_offset_ms 顾名思义,单位是毫秒,一般这个值不能超过 1000 + +## 监控规则 + +该 README 所在目录的同级目录下有 alerts.json 就是告警规则,导入夜莺即可使用 \ No newline at end of file