0% found this document useful (0 votes)
329 views3 pages

Percona Server Installation: Running PMM Server Via Docker

The document provides instructions for installing Percona Server for MySQL, which is an open source drop-in replacement for Oracle MySQL. It describes downloading Docker images for PMM Server, creating data containers, launching the PMM Server container, and installing PMM clients on Debian/Ubuntu and Red Hat/CentOS systems. The PMM clients are then configured to connect to the PMM Server and monitor MySQL, MongoDB, ProxySQL and PostgreSQL instances.

Uploaded by

hari krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
329 views3 pages

Percona Server Installation: Running PMM Server Via Docker

The document provides instructions for installing Percona Server for MySQL, which is an open source drop-in replacement for Oracle MySQL. It describes downloading Docker images for PMM Server, creating data containers, launching the PMM Server container, and installing PMM clients on Debian/Ubuntu and Red Hat/CentOS systems. The PMM clients are then configured to connect to the PMM Server and monitor MySQL, MongoDB, ProxySQL and PostgreSQL instances.

Uploaded by

hari krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

percona server installation

Short description:

Percona Server for MySQL is a distribution of the MySQL relational database management
system created by Percona. Percona Server for MySQL is an open source relational database
management system. It is a free, fully compatible drop in replacement for Oracle MySQL.

Installation procedure

1.Running PMM Server via Docker

Docker images of PMM Server are stored at the percona/pmm-server public repository. The
host must be able to run Docker 1.12.6 or later, and have network access.

Creating the pmm-data Container


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

Creating and Launching the PMM Server Container


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

Installing Clients
1.Percona Software Repositories

● Repository on Debian and Ubuntu


1. Fetch the repository package:
2. wget https://repo.percona.com/apt/percona-release_0.1-6.$(lsb_release -sc)_all.deb

3. Install the repository package:


4. sudo dpkg -i percona-release_0.1-6.$(lsb_release -sc)_all.deb

5. Update local apt cache:


6. sudo apt-get update
7.
● Repository on Red Hat Enterprise Linux and CentOS
Install the repository package:
sudo yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-
release-0.1-6.noarch.rpm

You should see the following if successful:


Installed:
percona-release.noarch 0:0.1-6

Complete!

2 .Installing PMM Client on Debian or Ubuntu

1. install the PMM Client package:


apt-get install pmm-client

3. Installing the PMM Client Package on Red Hat and CentOS

1. Install the pmm-client package:


yum install pmm-client

● Run this command as root or by using the sudo command


pmm-admin config --server 192.168.5.106:8500 --client-name “client name”

● Enable general system metrics, MySQL metrics, MySQL query analytics:


pmm-admin add mysql --user “username” --password “password”

● Enable general system metrics, MongoDB metrics, and MongoDB query analytics:
pmm-admin add mongodb

● Enable ProxySQL performance metrics:


pmm-admin add proxysql:metrics [NAME] [OPTIONS]

● Enable PostgreSQL performance metrics:


pmm-admin add postgresql --user “username” --password “password”

You might also like