标签:.com nload monit pxe sha use oar linu ffffff
背景:一,安装pmm server
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install docker-io
1,查看docker 版本:
2,启动docker
service docker start
3,创建Pmm 容器
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.1.1 /bin/true
4,运行这个容器
docker run -d \
-p 80:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:1.1.1
5,查看容器的状态
docker ps
6,访问PMM
打开浏览器 http://192.168.1.89/ 即可
二,安装cline
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm
yum install pmm-client
三,增加监控
1,连接PMM server
pmm-admin config --server 192.168.1.89
2,增加监控主机:
1)主机多实例
pmm-admin add mysql --user root --password admin --host 127.0.0.1 --port 3308 220_3308
pmm-admin add mysql --user root --password admin --host 127.0.0.1 --port 3310 220_3310
2)单实例
[root@pxe python_project]# pmm-admin add mysql --user root --password admin --host 127.0.0.1 --port 3306
[linux:metrics] OK, now monitoring this system.
[mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***@tcp(127.0.0.1:3306)
[mysql:queries] OK, now monitoring MySQL queries from slowlog using DSN
四,查看配置信息:
pmm-admin list
centos 6.8 安装percona pmm(监控神器)
标签:.com nload monit pxe sha use oar linu ffffff
原文地址:http://blog.51cto.com/538858/2327489