Skip to content

Commit 42e8d57

Browse files
committed
refactor log
1 parent e9960f4 commit 42e8d57

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

content/zh/docs/agent/categraf.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,20 @@ gather_more_metrics = [
125125
"limit",
126126
]
127127
```
128+
129+
### 2.配置了采集插件,但是页面上没有查到数据
130+
131+
细化拆解,需要确认:
132+
133+
- 数据采集环节
134+
- 数据传输环节
135+
136+
`http_response` 插件为例,通过如下命令可以查看 categraf 是否采集到了数据:
137+
138+
```shell
139+
./categraf --test --inputs http_response
140+
```
141+
142+
如果正常输出 `http_response_` 打头的指标,且没有报错,则表示采集成功。
143+
144+
数据传输链路是:`categraf -> nightingale -> tsdb`,所以要查看 categraf 的日志和 nightingale 的日志。参考 [这里](https://flashcat.cloud/docs/content/flashcat-monitor/nightingale-v6/faq/how-to-check-logs/) 的方法查看日志。

content/zh/docs/practice/linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Linux OS"
2+
title: "机器监控"
33
description: "夜莺监控(Nightingale)支持对 Linux 主机的监控,可以通过 Categraf 或 Node Exporter 等采集器采集主机的各类指标数据,并在仪表盘中展示。并使用夜莺监控的告警能力进行告警配置。"
44
date: 2025-06-01T19:42:42+08:00
55
lastmod: 2025-06-01T19:42:42+08:00

0 commit comments

Comments
 (0)