原 使用Prometheus+Grafana对pgbouncer监控
Tags: 原创监控GrafanaPrometheusPgbouncer
简介
GreenPlum中的pgbouncer连接池参考:https://www.xmmup.com/zaigreenplumzhongshiyongpgbouncerlianjiechi.html
PostgreSQL中的pgbouncer连接池参考:https://www.xmmup.com/pglianjiechigongjuzhipgbouncer.html
prometheus+grafana环境搭建
普罗米修斯+grafana的搭建之前介绍过很多次了,这里就不再介绍了,直接使用docker来创建:
1 2 3 4 5 6 7 8 9 10 11 | docker rm -f lhrprometheus docker run -d --name lhrprometheus -h lhrprometheus \ -p 2222:22 -p 23389:3389 \ -p 29090:9090 -p 29093:9093 -p 23000:3000 \ -v /sys/fs/cgroup:/sys/fs/cgroup --restart=always \ --privileged=true lhrbest/lhrprometheus:2.0 \ /usr/sbin/init docker exec -it lhrprometheus bash |