光辉岁月

Prometheus 安装

prometheus 安装

  官网:https://prometheus.io/download/
  GitHub:https://github.com/prometheus/prometheus
Prometheus配置信息的热加载有两种方式:

第一种热加载方式:查看Prometheus的进程id,发送 SIGHUP 信号:

kill -HUP <pid>

第二种热加载方式:发送一个POST请求到 /-/reload ,需要在启动时给定 --web.enable-lifecycle 选项:

curl -X POST http://localhost:9090/-/reload

如果配置热加载成功,Prometheus会打印出下面的log:

... msg="Loading configuration file" filename=prometheus.yml ...
posted @ 2020-06-11 18:02  taiman  阅读(106)  评论(0编辑  收藏  举报
哈哈哈