pmm-logo

 

PMM (Percona Monitoring and Management) is one of the best way to keeping MySQL under the control.

Installation is super easy, I’m writing for Ubuntu but you can find more detail on installation page.

Setting up the server

a) Data Container

[code]
$ 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.0.7 /bin/true
[/code]

b) Server Container

[code]
$ docker run -d \
-p 80:80 \
–volumes-from pmm-data \
–name pmm-server \
–restart always \
percona/pmm-server:1.0.7
[/code]

Installing Client

a) Setup

[code]
$ wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
$ sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
$ sudo apt-get update
$ sudo apt-get install pmm-client
[/code]

b) Connecting to server

[code]
$ sudo pmm-admin config –server 192.168.100.1
[/code]

c) Data Collection

[code]
sudo pmm-admin add mysql
[/code]

PMM comes with Grafana and Prometheus you can see really cool metrics 🙂

Thanks Percona for PMM 👍

Demo: https://pmmdemo.percona.com/

🐬

Join the Conversation

No comments

Leave a comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: