启动时报错如下,
msg="Error loading config (--config.file=/usr/local/prometheus/prometheus.yml)" file=/usr/local/prometheus/prometheus.yml err="parsing YAML file /usr/local/prometheus/prometheus.yml: yaml: line 38: mapping values are not allowed in this context"
原因:
prometheus.yml里内容的格式不对,缺少一个空格;
解决方法:
检查对应行附近的几行,要确保空格、冒号正确,各种符号都是英文下的符号;