Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos 6.8 install percona pmm (monitoring artifact)

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Background:

Perfect monitoring plays a very important role in the stability, operation and maintenance, tuning and fault location of the system. Monitoring plays an important role in the whole operation and maintenance system, so it is very important to have a perfect monitoring platform. Next, we will introduce a percona Pmm monitoring platform, which is very powerful, powerful and very powerful.

First, install pmm server

Yum-y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Yum install docker-io

1. Check the docker version:

2, start docker

Service docker start

3. Create a Pmm 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.1 / bin/true

4, run this container

Docker run-d\

-p 80:80\

-- volumes-from pmm-data\

-- name pmm-server\

-- restart always\

Percona/pmm-server:1.1.1

5. Check the status of the container

Docker ps

6. Visit PMM

Just open the browser http://192.168.1.89/

Second, install cline

Yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm

Yum install pmm-client

Third, increase monitoring.

1, connect to PMM server

Pmm-admin config-- server 192.168.1.89

2. Add monitoring hosts:

1) multiple instances of hosts

Pmm-admin add mysql-- user root-- password admin-- host 127.0.0.1-- port 3308

Pmm-admin add mysql-- user root-- password admin-- host 127.0.0.1-- port 3310

2) single instance

[root@pxe python_project] # pmm-admin add mysql-user root-password admin-host 127.0.0.1-port 3306

[linux:metrics] OK, now monitoring this system.

[mysql:metrics] OK, now monitoring MySQL metrics using DSN root:***@tcp (127.0.0.1 now monitoring MySQL metrics using DSN root:***@tcp 3306)

[mysql:queries] OK, now monitoring MySQL queries from slowlog using DSN

Fourth, check the configuration information:

Pmm-admin list

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report