Prometheus报错合集解决

668次阅读
没有评论

共计 262 个字符,预计需要花费 1 分钟才能阅读完成。

报错: field http_sd_configs not found in type config.ScrapeConfig”

msg="Error loading config (--config.file=prometheus.yml)" err="parsing YAML file prometheus.yml: yaml: unmarshal errors:\n line 26: field http_sd_configs not found in type config.ScrapeConfig

解决: 确保 prometheus 版本为 2.0 以上版本,检查语法配置。

正文完
 0
ddn
版权声明:本站原创文章,由 ddn 2023-08-21发表,共计262字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)