当前位置:网站首页>PMM(Percona Monitoring and Management )安装记录
PMM(Percona Monitoring and Management )安装记录
2022-07-26 09:23:00 【为天空着色】
安装环境:centos7.2
- 安装docker:
yum install docker -y启动docker
service docker start - 获取PMM服务器镜像:
docker pull percona/pmm-server:latest
- 创建PMM容器
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
- 创建和运行PMM Server Container
docker run -d\ -p 80:80 \ --volumes-from pmm-data\ --name pmm-server\ --restart always\ percona/pmm-server:latest80:80对应端口,可根据需求改(如8089:80)
查看docker运行状态:
docker ps
PMM服务端安装成功
pmm-client安装
制作yum源
rpm -ivh https://www.percona.com/redir/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm如果路径找不到,在官网找到正确的地址在安装:https://www.percona.com/redir/downloads/percona-release/redhat/
安装pmm-client
yum install pmm-client安装percona工具percona-toolkit
yum install percona-toolkit(vpn下安装比较快)
客户端连接pmm server
pmm-admin config --server 192.168.135.140
增加pmm-client监控账号
GRANT ALL PRIVILEGES ON *.* TO 'pmm'@'%' IDENTIFIED BY '1qazXSW2-!'; flush privileges;增加pmm客户端监控mysql到pmm服务器
pmm-admin add mysql --user pmm --password 1qazXSW2-! --host 192.168.135.140 --port 3306
查看PMM客户端添加的所有监控服务
pmm-admin list
pmm-client安装完成
在浏览器输入ip查看mysql监控状态:http://192.168.135.140/

docker常用命令:
# systemctl start docker // 启动docker
# systemctl stop docker // 关闭docker
# docker restart xxx // 重启一个容器
# docker stop xxx // 停止一个容器
# docker rm xxx // 删除一个容器
# docker rm -f xxx // 强制删除一个容器
# docker log xxx // 查看容器日志
# docker ps -a // 查看容器信息
# docker search xxx // 查看 hub上的 xxxx 镜像
# docker pull xxx // 下载包
边栏推荐
- Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
- Hbuilderx runs the wechat developer tool "fail to open ide" to solve the error
- 多项式开根
- Qtcreator reports an error: you need to set an executable in the custom run configuration
- 大二上第一周学习笔记
- Use of off heap memory
- [arkit, realitykit] turn pictures into 3D models
- 解决“NOTE: One or more layouts are missing the layout_width or layout_height attributes.”
- 838. 堆排序
- arc-gis基础操作3
猜你喜欢

Basic use of ArcGIS 4

2022 chemical automation control instrument operation certificate test question simulation test platform operation

CF1481C Fence Painting

js中树与数组的相互转化(树的子节点若为空隐藏children字段)

使用openLayer画箭头

Use of off heap memory
![[MySQL] detailed explanation of redo log, undo log and binlog (4)](/img/67/6e646040c1b941c270b3efff74e94d.png)
[MySQL] detailed explanation of redo log, undo log and binlog (4)

Under a directory of ext3 file system, subfolders cannot be created, but files can be created

会议OA项目(三)---我的会议(会议排座、送审)

arc-gis基础操作3
随机推荐
JS - DataTables control on the number of displays per page
Error: Cannot find module ‘umi‘ 问题处理
What is the difference between NFT and digital collections?
2022 tea artist (intermediate) special operation certificate examination question bank simulated examination platform operation
Processing of inconsistent week values obtained by PHP and MySQL
ZXing简化版,转载
Use of off heap memory
暑假第四周
MySQL strengthen knowledge points
arc-gis的基本使用2
I'm faded
antUI中a-modal 拖拽功能制作
【线上问题】Timeout waiting for connection from pool 问题排查
What is asynchronous operation
Pat grade a A1034 head of a gang
微信小程序学习笔记2
Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
自定义密码输入框,无圆角
Windows通过命令备份数据库到本地
"Could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32"