LoongCollector 终端部署需要修改启动参数和创建采集配置两步:
启动参数(ilogtail_config.json)关键项:
- discard_old_data: false——关闭丢弃旧数据,确保离线期间的数据在联网后能上传。
- config_server_lost_connection_timeout: 604800(7天)——调大断联容忍时间。
- force_quit_read_timeout: 604800——调大读取阻塞重启间隔。
- max_bytes_per_sec: 1048576——限制 1MB/s 最大发送速率。
- working_ip: 固定 IP——移动终端 IP 变化频繁,需固定标识。
采集配置分两层:
- 本地配置(/etc/ilogtail/config/local/):input_host_monitor + flusher_file 落盘主机指标;input_prometheus + flusher_file 落盘应用指标。
- 服务端管控配置:input_file 读取本地指标文件 + processor_parse_json_native 解析后上传。
注意:处理插件不要使用拓展插件(会拉起 Golang 模块增加内存);移动场景使用标识型机器组。




