Percona Monitoring and Management (PMM) installation

  Percona Monitoring and Management (PMM) Percona Server is an open source for managing and monitoring the performance of MySQL and MongoDB open source platform, collected by PMM client DB monitoring data with third-party software Grafana drawing displayed. Before this product, Percona provides Zabbix and Cacti graphic templates, perhaps taking into account issues such as cumbersome user to deploy, Percona released PMM Docker image, the user only needs to download the image to run all get out of the box. Its structure is as follows:

 

  Therefore pmm monitor consists of two parts. 

1, first download pmm server and pmm client from https://www.percona.com/software/database-tools/percona-monitoring-and-management. pmm server provides docker mirror. pmm client for the rpm package or binary package, you need to pay attention to the version of the operating system to download the corresponding.

2, docker installation. Docker need to install the kernel after 3.10, which is rhel / centos version 7.x of. The latest version has yet to container-selinux version requirements may result in passive situations, such as centos 7.2 install docker 19.03 dependence can not be found there. So it is best to install the specified version of the docker as 17.12.

yum remove docker                   docker-client                   docker-client-latest                   docker-common                   docker-latest                   docker-latest-logrotate                   docker-logrotate                   docker-selinux                   docker-engine-selinux                   docker-engine

yum install docker-ce-17.12.0.ce-1.el7.centos

3, local mirror load.

cat pmm-server-2.1.0.docker | docker import - pmm-server:2.1.0

[root@bigdata ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
percona/pmm-server 2.1.0 3d05a877b5d7 4 weeks ago 1.49GB

4, create a mirror.

docker create\

   -v /opt/prometheus/data\

   -v / opt / consul-data \

   -v / var / lib / mysql \

   -v / var / lib / grafana \

   --name pmm-data\

   percona/pmm-server:2.1.0 /bin/true

5, start the container

docker run -d\

   -p 80:80 \

   --volumes-from pmm-data\

   --name pmm-server\

   --restart always\

   percona/pmm-server:latest

6, see the docker process.

[root@bigdata ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7dc83eb892e4 percona/pmm-server:2.1.0 "/opt/entrypoint.sh" 12 hours ago Up 12 hours 443/tcp, 0.0.0.0:9999->80/tcp pmm-server

7, open http: // yourip.

 PMM client installation

Guess you like

Origin www.cnblogs.com/zhjh256/p/12047335.html