在看数据收集系统的时候, 发现 在数据收集的过程中, 采用了hybrid 的模式,
micro service 发送metrics 给rsyslog(数据收集) --push
并且还有telegraf 座位metrics collector agent 去主动收集cpu , 或者memory consumption --pull
所以想问问 为什么需要选择pull 和push, rsyslog 不可以收集cpu 的metrics吗
在看数据收集系统的时候, 发现 在数据收集的过程中, 采用了hybrid 的模式,
micro service 发送metrics 给rsyslog(数据收集) --push
并且还有telegraf 座位metrics collector agent 去主动收集cpu , 或者memory consumption --pull
所以想问问 为什么需要选择pull 和push, rsyslog 不可以收集cpu 的metrics吗
Pull push 选一个或者都要都可以。提到 pull 是因为有的服务我们不能直接改代码 instrument,就用 out-of-process 的 daemon 来收集。Rsyslog 不是很了解,我感觉应该不是用来读取 CPU, memory stats 的吧。