MySQL监控工具PMM分享( 二 )

添加MySQL监控[root@localhost ~]# pmm-admin add mysql --username=lzm --password=123 --query-source=perfschema --service-name=my64MySQL Service added.Service ID: /service_id/ed926231-5110-4e0b-a463-83cf4957374fService name: my64Table statistics collection disabled (the limit is 1000, the actual table count is 3688).这里显示这个工具最多只能收集1000个表的统计信息.我现在库里超过了1000个表查看客户端组件状态[root@localhost ~]# pmm-admin listService typeService nameAddress and portService IDMySQLmy64127.0.0.1:3306/service_id/ed926231-5110-4e0b-a463-83cf4957374fAgent typeStatusMetrics ModeAgent IDService IDpmm_agentConnected/agent_id/c5769237-fb8e-4577-8f96-5d15ba2f87a4node_exporterRunningpush/agent_id/56a8349d-cf2d-45db-9bdb-d4aaa700604cmysqld_exporterRunningpush/agent_id/943c161b-4a6f-4d56-97fd-83a19b683d95/service_id/ed926231-5110-4e0b-a463-83cf4957374f mysql_perfschema_agentRunning/agent_id/69a24be4-4f04-4137-a7e3-d33e72d62390/service_id/ed926231-5110-4e0b-a463-83cf4957374f vmagentRunningpush/agent_id/b851adf7-4dc8-4da6-ace6-2d4e6e644b00 
移除某个agent监控[root@db01 ~]# pmm-admin remove mysql mysql-64Service removed. 
查看agent运行状态root@152-cs1 ~]# pmm-admin statusAgent ID: /agent_id/05c1e77a-1c7d-42c6-bdb8-1da50cc78bdbNode ID : /node_id/f89d1cd3-c56c-4c46-a7fa-6d0b703bb3e5PMM Server: URL: https://10.10.119.65:1443/ Version: 2.20.0PMM Client: Connected: true Time drift: -200.069349ms Latency: 1.774292ms pmm-admin version: 2.20.0 pmm-agent version: 2.20.0Agents: /agent_id/bf327533-c543-45c8-b21c-9b3310e62066 mysqld_exporter Running /agent_id/e14863b3-dcb1-4f9b-afb8-8ece1ea372d7 mysql_perfschema_agent Running /agent_id/f6c1b851-dc40-486f-b3cf-be8b4dafd64c node_exporter Running /agent_id/f8608530-2312-4bbd-9ffc-1f55bb9777a6 vmagent Running查看各种pmm-admin命令 :
https://www.percona.com/doc/percona-monitoring-and-management/2.x/details/commands/pmm-admin.html
web页面查看 

MySQL监控工具PMM分享

文章插图
 

MySQL监控工具PMM分享

文章插图
 

MySQL监控工具PMM分享

文章插图
 

MySQL监控工具PMM分享

文章插图
 

【MySQL监控工具PMM分享】


推荐阅读