PMM出问题排查

Wesley13
• 阅读 576

PMM出问题排查

2017-09-29 阅读量259

看各种日志
monitoring service

1

2

3

4

[root@node4 ~]# ll /var/log/pmm-*

-rw-r--r--. 1 root root 1880 Sep 27 18:02 /var/log/pmm-linux-metrics-42000.log

-rw-r--r--. 1 root root 783 Sep 27 18:02 /var/log/pmm-mysql-metrics-42002.log

-rw-r--r--. 1 root root 7143 Sep 27 18:08 /var/log/pmm-mysql-queries-0.log

docker里的日志

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

[root@node4 log]# docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

e4916410b314 percona/pmm-server:latest "/opt/entrypoint.sh" 2 hours ago Up 31 minutes 0.0.0.0:80->80/tcp, 443/tcp pmm-server

948a9aeb047e percona/pmm-server:latest "/bin/true" 2 hours ago Created pmm-data

[root@node4 log]# docker logs e4916410b314

2017-09-27 08:39:47,175 CRIT Supervisor running as root (no user in config file)

2017-09-27 08:39:47,175 WARN Included extra file "/etc/supervisord.d/pmm.ini" during parsing

Unlinking stale socket /var/run/supervisor/supervisor.sock

2017-09-27 08:39:47,527 INFO RPC interface 'supervisor' initialized

2017-09-27 08:39:47,528 INFO supervisord started with pid 1

2017-09-27 08:39:48,536 INFO spawned: 'mysql' with pid 15

2017-09-27 08:39:48,543 INFO spawned: 'consul' with pid 16

2017-09-27 08:39:48,552 INFO spawned: 'grafana' with pid 17

2017-09-27 08:39:48,563 INFO spawned: 'nginx' with pid 18

2017-09-27 08:39:48,610 INFO spawned: 'cron' with pid 19

2017-09-27 08:39:48,612 INFO spawned: 'qan-api' with pid 20

进去容器看

1

2

3

4

docker exec -it e4916410b314 /bin/bash

/var/log 下面各种日志

/var/log/grafana/grafana.log

/var/log/prometheus.log

pmm-admin list是yes不代表没问题,check-network看看

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

[root@node4 ~]# pmm-admin check-network

PMM Network Status

Server Address | 172.16.83.103

Client Address | 172.16.83.103

* System Time

NTP Server (0.pool.ntp.org) | 2017-09-27 17:13:58 +0800 CST

PMM Server | 2017-09-27 09:13:58 +0000 GMT

PMM Client | 2017-09-27 17:13:58 +0800 CST

PMM Server Time Drift | OK

PMM Client Time Drift | OK

PMM Client to PMM Server Time Drift | OK

* Connection: Client --> Server

-------------------- -------

SERVER SERVICE STATUS

-------------------- -------

Consul API OK

Prometheus API OK

Query Analytics API OK

Connection duration | 551.133µs

Request duration | 2.467879ms

Full round trip | 3.019012ms

* Connection: Client <-- Server

-------------- ------ -------------------- ------- ---------- ---------

SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD

-------------- ------ -------------------- ------- ---------- ---------

linux:metrics node4 172.16.83.103:42000 OK YES -

mysql:metrics node4 172.16.83.103:42002 OK YES -

点赞
收藏
评论区
推荐文章
Stella981 Stella981
3年前
OSChina 周三乱弹 ——来自私生子的逆袭!
【今日歌曲】@打死我谢谢(https://my.oschina.net/u/2843167) :毎日の歌(https://www.oschina.net/tweettopic/%E6%AF%8E%E6%97%A5%E3%81%AE%E6%AD%8C)东京不太热洛天依!(https://static.oschina.n
Wesley13 Wesley13
3年前
Java 入门进阶
Java入门进阶發表於20150416http://xielong.me/2015/04/16/%E6%9C%8D%E5%8A%A1%E7%AB%AF%E5%B7%A5%E7%A8%8B%E5%B8%88%E5%85%A5%E9%97%A8%E4%B8%8E%E8%BF%9B%E9%98%B6Java%E7%89%88/
Stella981 Stella981
3年前
Linux上定时shell脚本
原文链接:http://www.92coder.com/9Linux%E5%AE%9A%E6%97%B6shell%E8%84%9A%E6%9C%AC/more(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.92coder.com%2F9Linux%25E5%25AE%
Stella981 Stella981
3年前
OSChina 周日乱弹 ——会爬墙的不仅仅是壁虎还有班主任
【今日歌曲】@小小李探花(https://my.oschina.net/xiaoshimei) :毎日の歌(https://www.oschina.net/tweettopic/%E6%AF%8E%E6%97%A5%E3%81%AE%E6%AD%8C) tobeー滨崎步!(http://static.oschina.n
Stella981 Stella981
3年前
SVN基本命令
SVN基本命令从远程检出代码svncohttp://路径(目录或文件的全路径)(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2F%E8%B7%AF%E5%BE%84%28%E7%9B%AE%E5%BD%95%E6%88%96%E6%96%87%E4%
Wesley13 Wesley13
3年前
Java三大特性
_Java面向对象编程三大特性:封装继承多态(https://snailclimb.gitee.io/javaguide//docs/java/Java%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86?id_11java%e9%9d%a2%e5%90%91%e5%af%b9%e8%b1%a1%e7%bc%96%e
Stella981 Stella981
3年前
OSChina 周日乱弹 ——熊孩子的绝望
【今日歌曲】@Lailysh(https://my.oschina.net/Laily) :毎日の歌(https://www.oschina.net/tweettopic/%E6%AF%8E%E6%97%A5%E3%81%AE%E6%AD%8C) いつも何度も ー木村弓!(https://static.oschina.ne
Stella981 Stella981
3年前
Kafka 是怎么存储的?为什么速度那么快?
文章收录地址:JavaBang(https://gitee.com/iByteCoding/JavaBang/tree/master/%E7%B2%BE%E9%80%89%E6%8A%80%E6%9C%AF%E4%B8%93%E6%A0%8F/Kafka%E6%A0%B8%E5%BF%83%E5%8E%9F%E7%90%86) 专注于系统架构、
Easter79 Easter79
3年前
SVN基本命令
SVN基本命令从远程检出代码svncohttp://路径(目录或文件的全路径)(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2F%E8%B7%AF%E5%BE%84%28%E7%9B%AE%E5%BD%95%E6%88%96%E6%96%87%E4%
Easter79 Easter79
3年前
SqlServer之代码块相关
原创文章,转载必需注明出处:http://www.ncloud.hk/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/sqlservercodeblock/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.cnblogs.com%2F%E5%8E%9