postgres_exporter包
https://github.com/prometheus-community/postgres_exporter/tree/master
启动
[program:postgres]
command=/opt/proms/postgres_exporter/postgres_exporter
environment=DATA_SOURCE_NAME="postgresql://postgres:xx@xx-bi.cv02mbuo4ins.us-east-1.rds.amazonaws.com:5432/postgres?sslmode=require"
directory=/opt/proms/postgres_exporter/
stdout_logfile=/opt/logs/proms/postgres_exporter.log
autostart=true
autorestart=true
redirect_stderr=true
user=root
startsecs=3
postgres_exporter.yml
auth_modules:foo1: # Set this to any name you wanttype: userpassuserpass:username: firstpassword: firstpassoptions:# options become key=value parameters of the DSNsslmode: disable