pmm监控postgresql数据库详细信息请参考:
Configuring PostgreSQL for Monitoring:
https://www.percona.com/doc/percona-monitoring-and-management/conf-postgres.html
创新互联建站主营浦江网站建设的网络公司,主营网站建设方案,APP应用开发,浦江h5重庆小程序开发公司搭建,浦江网站营销推广欢迎浦江等地区企业咨询
pmm安装部署请参考:
https://blog.51cto.com/1937519/2319421
以下步骤为安装和配置pmm client需要在被监控的postgresql数据库服务上面操作:
1.安装pmm client:
rpm -ivh https://www.percona.com/redir/downloads/percona-release/redhat/latest/percona-release-0.1-6.noarch.rpm
yum install pmm-client -y
2.设置数据库,创建用户:
ALTER SYSTEM SET track_io_timing=ON;
SELECT pg_reload_conf();
CREATE USER pmm_user WITH SUPERUSER ENCRYPTED PASSWORD 'secret';
3.配置监控服务器
pmm-admin config --server 192.168.56.200 --server-user admin --server-password admin
或者:
pmm-admin config --server 192.168.56.200
4.添加操作系统监控:
pmm-admin add linux:metrics
5.添加postgresql数据库监控:
pmm-admin add postgresql --host=localhost --password='secret' --port=5432 --user=pmm_user
6.登录监控查看: