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 ...
随机推荐
- Android 那些年,处理getActivity()为null的日子
在日常开发中的时候,我们经常会使用ViewPager+Fragment进行视图滑动,在某些部分逻辑也许我们需要利用上下文Context(例如基本的Toast),但是由于Fragment只是衣服在Act ...
- Vue项目结合vux使用
引入vux 1.直接安装或者更新: npm install vux --save 或者使用 yarn yarn add vux // 安装 yarn upgrade vux // 更新 2.vux2必 ...
- 箭头函数的this
定义时所处的对象就是它的this 看外层是否有函数 如果有,外层函数的this就是内部箭头函数的this 如果没有,this就是window let obj = { name : '箭头函数', ge ...
- [NOIP2015普及组]推销员
题目:洛谷P2672.codevs5126.Vijos P1977 题目大意:有个推销员要去推销,要你求他推销1~n户人家分别最多花多少“疲劳值”.具体见题目. 解题思路:如果用$O(n^2)$做的话 ...
- makefile--回顾基础篇
前阵子让写makefile,纠结了下,基本忘记差不多了. 1.gcc的编译选项 -c 只是编译不链接,生成目标文件“.o” -S 只是编译不汇编,生成汇编代码 -E 只进行预编译,不做其他处理 -g ...
- pip 出错
pip 升级到10以上出错 ImportError: cannot import name 'main' 解决方法一: 降低pip的版本号 python -m pip install pip==9.0 ...
- 将页面的内容导出使用html2canvas+jsPDF
第一首先是要引用 import jsPDF from 'jspdf' import html2canvas from 'html2canvas' import PDFJS from 'pdfjs-di ...
- Django学习之配置篇
MTV Model Template View 数据库 模版文件 业务处理 了解Django框架,功能齐全 一.安装Django&Django基本配置 安装Django pip3 django ...
- 紫书 例题 11-5 UVa 10048 (Floyd求最大权值最小的路径)
这道题是Floyd的变形 改成d[i][j] = min(d[i][j], max(d[i][k], d[k][j]))就好了. #include<cstdio> #include< ...
- unity 调用 .dll 或 .so时遇到的问题
1.32位的 .dll 无法在64位的unity编辑器下运行. System.DllNotFoundException: xxx , 64位的程序运行32位的dll是会报这种错 2.Failed t ...