Prometheus 简介
概念
- prometheus server
- exporter,用于server采集数据,有官方提供的node-exporter,也可以通过各种SDK自定义导出内容,暴露一个类似
/metrics
的路径用于采集- 注意,exporter在多进程(gunicorn 多进程)模式下使用会有限制,参考文档
- 数据模型,和influxdb类似,是时序数据库,以metric为名称,多个label(key-value形式)组成:
<metric name>{<label name>=<label value>, ...}
重载配置
Yes, sending SIGHUP to the Prometheus process or an HTTP POST request to the /-/reload endpoint will reload and apply the configuration file. The various components attempt to handle failing changes gracefully.