1、检查Prometheus配置文件的语法合法性
promtool check config <PATH>/prometheus.yaml
2、Prometheus配置文件热加载
启动Prometheus需要开启 --web.enable-lifecyle , 然后就可以使用 curl -X POST http://localhost:9090/-/reload (http://localhost:9090 为访问Prometheus的url) 热加载配置文件 或者使用 kill -HUP <PID>
3、数据拉取的不同阶段
relabel_configs 发生在拉取数据之前 metric_relabel_configs 发生在拉取数据之后