安装pmm监控

安装pmm监控
pmm:https://blog.csdn.net/h952520296/article/details/78436031


https://docs.docker.com/engine/install/centos/

docker create\
   -v /opt/prometheus/data\
   -v /opt/consul-data\
   -v /opt/lib/mysql\
   -v /opt/lib/grafana\
   --name pmm-data\
   percona/pmm-server:latest /bin/true


yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm


mkdir -p /opt/prometheus/data /opt/consul-data /opt/lib/mysql /opt/lib/grafana

docker run -d \
   -p 80:80 \
   --volumes-from pmm-data \
   --name pmm-server \
   --restart always \
   percona/pmm-server:latest

 

http://rpm.pbone.net/index.php3/stat/4/idpl/50591217/dir/scientific_linux_7/com/container-selinux-2.74-1.el7.noarch.rpm.html

yum -y install  container-selinux-2.74-1.el7.noarch.rpm

yum install http://www.percona.com/downloads/percona-release/redhat/1.0-13/percona-release-1.0-13.noarch.rpm
yum list | grep percona
yum install percona-release-1.0-13.noarch.rpm

yum install pmm-client

添加MySql:
pmm-admin config --server 192.168.66.104:80

pmm-admin add mysql --query-source perfschema --user root --password Root@0101

https://www.ywnds.com/?p=9668
添加mongodb:
pmm-admin config --server 192.168.66.104:80
mongo --port 27017 -u "myTester" -p "xyz123" --authenticationDatabase "test"

pmm-admin add mongodb --uri mongodb://myTester:[email protected]:27017

你可能感兴趣的:(oracle,监控)