二进制方式部署prometheus server

https://www.cnblogs.com/knmax/p/9297213.html


prometheus使用教程

https://www.jianshu.com/p/d2702d0bc9ab


Pushgateway 安装和使用

https://songjiayang.gitbooks.io/prometheus/content/pushgateway/how.html


prometheus 数据存到influxdb

prometheus存数据到influxdb数据库:

注:
1、influxdb要求1.4以上版本
2、prometheus用默认的存储方式在grafana上可方便计算空间使用率等的信息(涉及计算),切到influxdb后目前还不知道如何转换

rpm -i influxdb-1.6.3.x86_64.rpmservice influxdb startchkconfig --level 35 influxdb oninflux

create database prometheus;
create user icinga2 with password 'xxxx';
grant all on prometheus to icinga;
show retention policies on prometheus; 
alter retention policy "autogen" on "prometheus" duration 365d default;  备注:duration 数据保存时间,默认是0s
quit

vi /space/prometheus/prometheus.yml

remote_write:

remote_read:

:wq

/space/prometheus/prometheus --config.file=/space/prometheus/prometheus.yml

参考http://blog.51cto.com/yangzhiming/2287172

参考链接http://docs.influxdata.com/influxdb/v1.6/supported_protocols/prometheus/

prometheus配置文件解析

http://www.cnblogs.com/liujiliang/p/10080849.html

https://www.jianshu.com/p/bedd169676b6

检查prometheus配置文件语法错误

解压prometheus二进制安装包中的promtool移动到/usr/local/bin目录,

#检查配置文件  promtool check config /etc/prometheus/prometheus.yml


prometheus告警规则配置模板


https://blog.csdn.net/u012394095/article/details/81942635


prometheus使用influxdb做永久存储

链接http://chenzhijun.me/2018/06/09/prometheus-storage-influxdb/#more