You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

配置Vector健康检查遇unknown field `healthcheck`错误求助

解决Vector健康检查配置报错问题

问题原因

你使用的[healthcheck]顶级配置字段已被Vector废弃,当前版本的健康检查功能整合在API模块下,因此会触发"未知字段"的错误提示。

正确配置方式

修改/etc/vector/vector.toml文件,移除原有的[healthcheck]块,替换为以下配置:

[api]
enabled = true
address = "127.0.0.1:8686" # 可根据需求调整监听地址,默认端口为8686

[api.healthchecks]
enabled = true

验证与生效步骤

  1. 执行配置验证命令确认配置合法:
vector validate
  1. 验证通过后重启Vector服务使配置生效:
systemctl restart vector

检查健康状态

配置生效后,访问http://localhost:8686/health,返回200 OK即表示Vector运行状态正常。

内容的提问来源于stack exchange,提问作者Stanley Ulili

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 03:27:02