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 ...
随机推荐
- 解决局域网内无法IP访问IIS已发布的网站
在IIS上发布的网站,本地可以访问,但是局域网内其他电脑却访问不了,原来是防火墙的问题,关闭它就可以访问了. 上面是我的简单操作 后来又百度了一下,发现有个更详细的操作:http://jingyan. ...
- 编程语言与Python学习(二)
1.1 流程控制之for循环 1 迭代式循环:for,语法如下 for i in range(10): 缩进的代码块 2 break与continue(同上) 3 循环嵌套 for i in rang ...
- HDU 1010 Tempter of the Bone【DFS】
学习剪枝的第一篇@_@学习别人的剪枝,一剪就是两天@_@---- 参看的这篇--http://blog.csdn.net/libin56842/article/details/8962512自己的小体 ...
- 条件变量本质-Problem statement-while not( P ) do skip
条件变量相当于订阅-发布机制: 或者相当于同步的通知机制: 订阅和发布具有先后顺序:所以需要互斥量来维护顺序. 顺序不对,存在信号丢失问题. Problem statement[edit] For m ...
- DNS BIND之dnssec安全介绍
Domain Name System Security Extensions (DNSSEC)DNS安全扩展,是由IETF提供的一系列DNS安全认证的机制(可参考RFC2535).它提供了一种来源鉴定 ...
- 多任务-进程之PID
1.进程pid,如何在程序中获取我们的进程号,从而查看当前的进程 # -*- coding:utf-8 -*- from multiprocessing import Process import o ...
- 如何发布到NPM上(转)
简要:这篇文章介绍了如何讲自己的包发布到NPM上,马克一下,将来有用 ... npm包发布 发布npm包,更方便以后下载使用. 我们已经把插件代码上传到github上面了,那么我们是否可以也做成一个n ...
- c的面向对象思想记录
在一家公司做实习生,努力学习,keep moving. //c1.h typedef struct { +]; int (*tr)(); } trans; //c1.c #include<str ...
- Google的10大座右铭
1. 以用户为中心,其他一切纷至沓来. 创建伊始,Google 即以提供最佳的用户体验为其中心任务.虽然很多公司主张客户利益优先,但难以抗拒各种诱惑,往往会牺牲客户的少量利益来增加股东价值. Goog ...
- Android ADB工具-截图和录制视频(五)
Android ADB工具-截图和录制视频(五) 标签(空格分隔): Android ADB 7. 截图和录制视 命令 功能 adb shell screencap –p <path/file& ...