当前位置:网站首页>PMM (percona monitoring and management) installation record
PMM (percona monitoring and management) installation record
2022-07-26 09:49:00 【Color the sky】
Installation environment :centos7.2
- install docker:
yum install docker -ystart-up docker
service docker start - obtain PMM Server image :
docker pull percona/pmm-server:latest
- establish PMM Containers
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
- Create and run PMM Server Container
docker run -d\ -p 80:80 \ --volumes-from pmm-data\ --name pmm-server\ --restart always\ percona/pmm-server:latest80:80 Corresponding port , It can be changed according to needs ( Such as 8089:80)
see docker Running state :
docker ps
PMM The server is installed successfully
pmm-client install
Make yum Source
rpm -ivh https://www.percona.com/redir/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpmIf the path cannot be found , Find the correct address on the official website to install :https://www.percona.com/redir/downloads/percona-release/redhat/
install pmm-client
yum install pmm-clientinstall percona Tools percona-toolkit
yum install percona-toolkit(vpn Lower installation is relatively fast )
Client connection pmm server
pmm-admin config --server 192.168.135.140
increase pmm-client Monitoring accounts
GRANT ALL PRIVILEGES ON *.* TO 'pmm'@'%' IDENTIFIED BY '1qazXSW2-!'; flush privileges;increase pmm Client monitoring mysql To pmm The server
pmm-admin add mysql --user pmm --password 1qazXSW2-! --host 192.168.135.140 --port 3306
see PMM All the monitoring services added by the client
pmm-admin list
pmm-client installation is complete
Type in the browser ip see mysql Monitoring status :http://192.168.135.140/

docker Common commands :
# systemctl start docker // start-up docker
# systemctl stop docker // close docker
# docker restart xxx // Restart a container
# docker stop xxx // Stop a container
# docker rm xxx // Delete a container
# docker rm -f xxx // Force deletion of a container
# docker log xxx // View container log
# docker ps -a // View container information
# docker search xxx // see hub Upper xxxx Mirror image
# docker pull xxx // Download package
边栏推荐
- Modern medicine in the era of "Internet +"
- Audio and video knowledge
- Solve NPM -v sudden failure and no response
- 2021年山东省中职组“网络空间安全”B模块windows渗透(解析)
- copyTo
- antd TreeSelect获取父节点的值
- R language ggplot2 visualization: align the legend title to the middle of the legend box in ggplot2 (default left alignment, align legend title to middle of legend)
- JS判断数据类型 Object.prototype.toString.call和typeof
- 高斯消元的应用
- Fiddler download and installation
猜你喜欢

Registration module use case writing

2021年山东省中职组“网络空间安全”B模块windows渗透(解析)

Alibaba cloud technology expert haochendong: cloud observability - problem discovery and positioning practice

阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践

Search module use case writing

Fuzzy PID control of motor speed

2019 ICPC Asia Yinchuan Regional(水题题解)

Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken

配置ADCS后访问certsrv的问题

Fiddler download and installation
随机推荐
copyTo
【荧光字效果】
Solve the problem of storing cookies in IE7 & IE8
Wechat applet avatarcropper avatar clipping
高斯消元求解矩阵的逆(gauss)
Sqoop【付诸实践 02】Sqoop1最新版 全库导入 + 数据过滤 + 字段类型支持 说明及举例代码(query参数及字段类型强制转换)
Development to testing: a six-year road to automation starting from 0
asp. Net using redis cache (2)
云原生(三十六) | Kubernetes篇之Harbor入门和安装
The problem of accessing certsrv after configuring ADCs
Node 内存溢出及V8垃圾回收机制
Fiddler download and installation
R语言ggplot2可视化: 将图例标题(legend title)对齐到ggplot2中图例框的中间(默认左对齐、align legend title to middle of legend)
一种分布式深度学习编程新范式:Global Tensor
V-permission add permission
Qt随手笔记(三)在vs中使用QtCharts画折线图
Cloud native (36) | introduction and installation of harbor in kubernetes
(1) Hand eye calibration of face scanner and manipulator (eye on hand)
Application of Gauss elimination
E. Two Small Strings