Home | 简体中文 | 繁体中文 | 杂文 | 知乎专栏 | Github | OSChina 博客 | 云社区 | 云栖社区 | Facebook | Linkedin | 视频教程 | 打赏(Donations) | About
知乎专栏多维度架构 微信号 netkiller-ebook | QQ群:128659835 请注明“读者”

1.2. Prometheus 命令行工具

1.2.1. 刷新配置文件

			
#方式1: 
kill -HUP ${prometheus_pid} 

docker kill -s HUP <容器ID> 
 
#方式2: 
# 需要 --web.enable-lifecycle 参数为true
curl -X POST http://10.0.209.140:9090/-/reload			
			
			

1.2.2. promtool 配置文件校验工具

安装 promtool

		
go get github.com/prometheus/prometheus/cmd/promtool
promtool check rules /path/to/example.rules.yml		
		
			

		
promtool check config /etc/prometheus/prometheus.yml