prometheus是一个优秀的服务树监控组件, Grafana 是一个图形化展示界面 postgres_exporter 是一个postgres服务器状态收集组件,服务于prometheus, prometheus 官方提供了mysql的服务器状态的手机组件,postgres的却没有提供,好在拥有万能的github
https://github.com/wrouesnel/postgres_exporter
安装流程:
安装prometheus
下载prometheus, 可以到官网下载编译好的二进制文件,也可以到github 下载源码自己编译:
wget https://github.com/prometheus/prometheus/releases/download/v1.4.1/prometheus-1.4.1.linux-amd64.tar.gz
#编辑配置文件
nvim prometheus.yml
下面的文件为我的配置文件&#