Percona Monitoring and Management 笔记

这几天看到Percona 有一个针对mysql和mongodb的不错的监控,最近刚好觉得公司的数据库监控做的不够完善 就测试了一下pmm,简单的记录一下:
服务端的安装
docker pull percona/pmm-server:lates
mkdir -p /opt/prometheus/data
mkdir -p /opt/consul-data
mkdir -p /var/lib/mysql
mkdir -p /var/lib/grafana
docker create -v /opt/prometheus/data -v /opt/consul-data -v /var/lib/mysql -v /var/lib/grafana --name pmm-data percona/pmm-server:1.2.0 /bin/true
docker run -d -p 8881:80 --volumes-from pmm-data --name pmm-server --restart always percona/pmm-server:1.2.0

客户端的安装
yum install https://www.percona.com/redir/downloads/percona-release/redhat/percona-release-0.1-4.noarch.rpm
yum install pmm-client -y
pmm-admin config --server 47.92.131.xxx:80
vim /usr/local/percona/pmm-client/pmm.yml 修改hostnane
pmm-admin check-network 检查域服务端的链接
pmm-admin config --server 47.92.131.xxx:80

Percona Monitoring and Management 笔记_第1张图片
1111.png
Percona Monitoring and Management 笔记_第2张图片
222.png

你可能感兴趣的:(Percona Monitoring and Management 笔记)