PMM的使用操作手册
1. 安装docker,创建data数据,启动pmm-server容器
docker pull percona/pmm-server:latest
docker create \
-v /opt/prometheus/data \
-v /opt/consul-data \
-v /var/lib/mysql \
-v /var/lib/grafana \
--name pmm-data \
percona/pmm-server:latest /bin/true
docker run -d \
-p 8081:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:latest
3.从官方下载rpm包进行client安装
https://www.percona.com/downloads/pmm/ 选择centos7 最新版本的pmm版本
rpm -ivh pmm-client-1.17.1-1.el7.x86_64.rpm
[root@Prometheus0002 tmp]# pmm-admin config --server 172.16.0.193
OK, PMM server is alive.
PMM Server | 172.16.0.193
Client Name | Prometheus0002
Client Address | 172.16.0.15
pmm-admin add linux:metrics
pmm-admin add mysql
4.配置告警