Percona Monitoring and Management (PMM)安装使用
一、docker安装
参考:http://www.cnblogs.com/liuyongsheng/articles/6595353.html
二、Percona Monitoring and Management (PMM)安装
1、获取镜像
[root@monitor ~]# docker pull percona/pmm-server
Using default tag: latest
latest: Pulling from percona/pmm-server
c60055a51d74: Pull complete
755da0cdb7d2: Pull complete
969d017f67e6: Pull complete
37c9a9113595: Pull complete
a3d9f8479786: Pull complete
b6ab3b0bfa0d: Pull complete
65ab16956847: Pull complete
a1417d0dd36e: Pull complete
97fa057ce7a8: Pull complete
a58aa2e3d188: Pull complete
a91dfa894b5c: Pull complete
c8aaab5d6dd1: Pull complete
f2e439363693: Pull complete
19471b0bedf3: Pull complete
836c269361ef: Pull complete
5faa36b0e7e5: Pull complete
bdef22c080c7: Pull complete
595467d59d25: Pull complete
f636241c708a: Pull complete
61a4967f7976: Pull complete
1acd44e68ea8: Pull complete
25b64909c59a: Pull complete
Digest: sha256:a12d17e48ceffce7f92d27f84dc827848626c144117a88ec4bf0d43a39dc6479
Status: Downloaded newer image for percona/pmm-server:latest
[root@monitor ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
percona/pmm-server latest 21e0ea6d9e06 4 weeks ago 737 MB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
2、Create a PMM Data Container
[root@monitor ~]# docker tag percona/pmm-server percona/pmm-server:1.1.1
[root@monitor ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
percona/pmm-server 1.1.1 21e0ea6d9e06 4 weeks ago 737 MB
percona/pmm-server latest 21e0ea6d9e06 4 weeks ago 737 MB
hello-world latest 48b5124b2768 2 months ago 1.84 kB
[root@monitor ~]# 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
59dcfd8e715532141bd52df1a12b9c7864600dd3981273693d1c7e0c9060bc08
3、Create and Run the PMM Server Container
[root@monitor ~]# docker run -d \
> -p 8080:80 \
> --volumes-from pmm-data \
> --name pmm-server \
> --restart always \
> percona/pmm-server:1.1.1
136eb3d556d4295bc2b0d5b1e6cceb643c29cab27cb44270d323560ef6c67403
[root@monitor ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
136eb3d556d4 percona/pmm-server:1.1.1 "/opt/entrypoint.sh" 4 seconds ago Up 3 seconds 443/tcp, 0.0.0.0:8080->80/tcp pmm-server
[root@monitor ~]# netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1053/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1974/master
tcp6 0 0 :::8080 :::* LISTEN 19226/docker-proxy
tcp6 0 0 :::22 :::* LISTEN 1053/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1974/master
4、确认安装信息

5、PMM Client安装
Percona Monitoring and Management (PMM)安装使用的更多相关文章
- mysql/mongodb监控之Percona Monitoring and Management (PMM) 2.1.0安装使用
Percona Monitoring and Management (PMM)是Percona Server一款开源的用于管理和监控MySQL和MongoDB性能的开源平台,通过PMM客户端收集到的D ...
- Percona Monitoring and Management (PMM) - 快速入门
前言 数据库监控工具最常用的就是zabbix了,zabbix能将收集到的数据通过图表展示出来,并通过设置阈值及时告警.可zabbix对于文本的处理就不行了,比方说抓取数据库运行的sql,这个zabbi ...
- 利用Percona monitoring for zabbix监控MySQL
系统要求 被监控的主机及mysql监控账号,zabbix agent 2.0或以上(最好与zabbix-server版本相同),php, php-mysql(php版本没有限制,经测试5.3是可以的. ...
- Docker部署Zabbix监控MariaDB主从同步(Percona Monitoring Plugins for Zabbix)
一.安装Docker并部署Zabbix 建议先配置清华大学的docker-ce yum源,速度有保障:清华大学repo源 1.Zabbix Server节点配置 部署环境: [root@server0 ...
- PMM安装-第一篇
一 简介 今天来聊聊 PMM安装使用 二 安装 1 server端执行 curl -sSL https://get.daocloud.io/docker | sh docker pull p ...
- Zabbix 3.x中使用Percona Monitoring Plugins监控MySQL
1.下载安装percona-zabbix-templates-1.1.7-2.noarch.rpm 下载地址:https://www.percona.com/downloads/percona-mon ...
- Zabbix 3.2.6-Mysql多实例监控-Percona Monitoring Plugins自动发现
mysql多实例监控实录 系统环境: cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) 内核版本: uname -r 3.1 ...
- 修正Percona Monitoring Plugins for Zabbix的一处脚本Bug
今天小试了一把Percona Monitoring Plugins for Zabbix模板,自己辛辛苦苦写的那一大堆Python脚本,貌似用这个模板全都覆盖到了.但是,我也发现最新的版本percon ...
- Sql Server 2008 Management studio安装教程
Sql Server 2008 Management studio安装教程 以下介绍Visual Studio 2010已安装后,sql server 2008 management stud ...
随机推荐
- IDE-IntelliJ IDEA
IDE-IntelliJ IDEA 主题.字体.编辑区主题.文件编码修改.乱码问题 主题修改 上图标注 1 所示为 IntelliJ IDEA 修改主题的地方,可以通过打开左上角的File -> ...
- BZOJ 3160 FFT+Manacher
思路: 这道题思路好奇怪--. 我们先要知道关于x (x可以是间隙) 对称的有几对字母 显然暴力是n^2的 那怎么办呢 先把所有'a'看成1 'b'看成0 意外的发现 这不就是卷积嘛 再倒过来搞一搞 ...
- JavaScript学习——使用JS完成全选和全不选操作
1.我们希望在后台系统实现一个批量删除的操作(全选所有的复选框)和全不选,显示效果如下: 2.步骤分析: 第一步:确定事件(onclick)并为其绑定一个函数(事件绑定到编号前面的复选框里面) 第二步 ...
- Servicification
Servicification Summary The Chromium codebase now supports many platforms and use cases. In response ...
- django 分组统计遇见的问题
在使用 django 的时候发现了一个坑 例如: In [54]: print(F.objects.all().values("age").annotate(fff=Count(& ...
- PCA一些性质的定性理解
1.通过本征向量和本征值求主成分 关系:本征值是本征向量的缩放倍数,本征值大的对应的本征向量上的样本的数目就越多:相反本征值越小的,就本征向量上的样本数量就会少.因此可以求出PCA的主成分 主成分分析 ...
- AES对称加密util
package cn.com.qmhd.oto.common; import java.security.Key; import java.security.NoSuchAlgorithmExcept ...
- 紫书 例题8-6 UVa 1606(扫描法)
这道题目用扫描法 扫描法:在枚举的过程中维护一些重要的量, 从而简化计算 这道题用到了极角, 叉积, 高一的我表示一脸懵逼 不过自己去百度了一下好像大概看得懂. 这道题我还有一些疑问, 先这样吧 #i ...
- 洛谷 P2926 [USACO08DEC]拍头Patting Heads
P2926 [USACO08DEC]拍头Patting Heads 题目描述 It's Bessie's birthday and time for party games! Bessie has i ...
- Qt之QToolButton
简述 QToolButton类提供了用于命令或选项可以快速访问的按钮,通常可以用在QToolBar里面. 工具按钮和普通的命令按钮不同,通常不显示文本,而显示图标. 简述 详细描述 常用接口 更多参考 ...