PMM INSTALL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
yum install docker -y
service docker restart
# create 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:1.1.3 /bin/true
# run pmm-server
docker run -d \
-p 8081:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:1.1.3
# verifying
http://IP:8081/
http://IP:8081/qan/
# admin/admin (default)
http://IP:8081/graph/
http://IP:8081/orchestrator/
# install client
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
yum install pmm-client
# connect pmm-server
pmm-admin config --server 121.42.195.197:8081
# start mysql and mongodb
service mysqld restart # /etc/init.d/mysqld restart
bin/mongod -f conf/mongodb.cnf
# add monitor
pmm-admin add mysql --user DBUSER --password DBUSERPASS
pmm-admin add mongodb
# show
pmm-admin list
mongodb.cnf
1
2
3
4
5
6
dbpath=/root/data/
logpath=mongodb.log
logappend=true
fork=true
verbose=true
vvvvv=true