相对于Graphite这种产品,仍是有很多优势的。最让我以为不错的是很是优秀的写性能和读取性能,它数据结构实现和OpenTSDB是有类似之处,有兴趣能够看看这个文档linux
2、安装Prometheus
下载http://cactifans.hi-www.com/prometheus/prometheus-2.1.0.linux-amd64.tar.gz
prometheus安装比较简单,下载编译好的二进制文件,修改好配置文件,直启动便可
下载以后解压
tar zxvf prometheus-2.1.0.linux-amd64.tar.gz
解压以后,会有一个默认的配置文件,能够直接使用这个配置文件启动
cd prometheus-2.1.0.linux-amd64
./prometheus --config.file=prometheus.yml
便可启动prometheus,默认端口为9090.经过浏览器能够看到以下页面,表示prometheus启动正常。
http://172.16.8.240:9090/graphdocker
prometheus自带的绘图功能比较弱,如何才能使展现效果高大上呢?这里就要使用Grafana.借助与Grafana能够彻底自定义属于本身的Dashboard监控视图。
数据库