Hello nurlan,
My Mariadb server was up and running when I tried to add it to pmm server.
pmm-admin status
Agent ID : /agent_id/40481888-308a-4955-a3c3-1c08534386c9
Node ID : /node_id/9cf1cfe1-4286-4cbf-b424-f8d6741f8126
Node name: mariadb1
PMM Server:
PMM Client:
- Connected : true*
- Time drift : 4.717151ms*
- Latency : 453.503µs*
- Connection uptime: 100*
- pmm-admin version: 2.37.1*
- pmm-agent version: 2.37.1*
Agents:
- /agent_id/04b463e7-549b-4a59-90f2-26e6e004d113 vmagent Running 42000*
- /agent_id/e6d23331-b4e2-453b-a14e-e91c4de7dc13 node_exporter Running 42001*
pmm-admin list
Service type Service name Address and port Service ID
Agent type Status Metrics Mode Agent ID Service ID Port
pmm_agent Connected /agent_id/40481888-308a-4955-a3c3-1c08534386c9 0
node_exporter Running push /agent_id/e6d23331-b4e2-453b-a14e-e91c4de7dc13 42001
vmagent Running push /agent_id/04b463e7-549b-4a59-90f2-26e6e004d113 42000
It’s a 10.3 MariaDB in standalone mode on a VM centos7.
systemctl status mariadb
● mariadb.service - MariaDB 10.3.32 database server
on PMM UI, I could see the node info from this mariadb server after run pmm-admin config successfuly.
But, unfortunately, pmm-admin add still in error …
pmm-admin add mysql --query-source=slowlog --size-slow-logs=1GiB --username=pmm --password=pass Mariadb1_Mysql_Node1 9.101.52.38:3306
Connection check failed: commands out of sync. Did you run multiple statements at once?.
[root@mariadb1 ~]# pmm-admin add mysql --query-source=slowlog --size-slow-logs=1GiB --username=pmm --password=pass Mariadb1_Mysql_Node1 9.101.52.38:3306 --debug
DEBUG 2023-06-21 17:32:31.163728119Z: POST /local/Status HTTP/1.1
Host: 127.0.0.1:7777
User-Agent: Go-http-client/1.1
Content-Length: 3
Accept: application/json
Content-Type: application/json
Accept-Encoding: gzip
{}
DEBUG 2023-06-21 17:32:31.166029725Z: HTTP/1.1 200 OK
Content-Length: 1119
Content-Type: application/json
Date: Wed, 21 Jun 2023 17:32:31 GMT
Grpc-Metadata-Content-Type: application/grpc
{
“agent_id”: “/agent_id/40481888-308a-4955-a3c3-1c08534386c9”,
“runs_on_node_id”: “/node_id/9cf1cfe1-4286-4cbf-b424-f8d6741f8126”,
“server_info”: {
“url”: “https://api_key:eyJrIjoiR1VWTWZWekV4b20xM0RCV0s3OVFqNHlnQ2dtNXVhb1giLCJuIjoicG1tLWFnZW50LW1hcmlhZGIxLTg0NDYwOTE3MzM2OTUzMDQ5MjAiLCJpZCI6MX0=@9.101.52.28:31654/”,
“insecure_tls”: true,
“connected”: true,
“version”: “2.37.0”,
“latency”: null,
“clock_drift”: null
},
“agents_info”: [
{
“agent_id”: “/agent_id/04b463e7-549b-4a59-90f2-26e6e004d113”,
“agent_type”: “VM_AGENT”,
“status”: “RUNNING”,
“listen_port”: 42000,
“process_exec_path”: “/usr/local/percona/pmm2/exporters/vmagent”
},
{
“agent_id”: “/agent_id/e6d23331-b4e2-453b-a14e-e91c4de7dc13”,
“agent_type”: “NODE_EXPORTER”,
“status”: “RUNNING”,
“listen_port”: 42001,
“process_exec_path”: “/usr/local/percona/pmm2/exporters/node_exporter”
}
],
“config_filepath”: “/usr/local/percona/pmm2/config/pmm-agent.yaml”,
“agent_version”: “2.37.1”,
“node_name”: “mariadb1”,
“connection_uptime”: 100
}
DEBUG 2023-06-21 17:32:31.166576414Z: POST /local/Status HTTP/1.1
Host: 127.0.0.1:7777
User-Agent: Go-http-client/1.1
Content-Length: 3
Accept: application/json
Content-Type: application/json
Accept-Encoding: gzip
{}
DEBUG 2023-06-21 17:32:31.167336413Z: HTTP/1.1 200 OK
Content-Length: 1119
Content-Type: application/json
Date: Wed, 21 Jun 2023 17:32:31 GMT
Grpc-Metadata-Content-Type: application/grpc
{
“agent_id”: “/agent_id/40481888-308a-4955-a3c3-1c08534386c9”,
“runs_on_node_id”: “/node_id/9cf1cfe1-4286-4cbf-b424-f8d6741f8126”,
“server_info”: {
“url”: “https://api_key:eyJrIjoiR1VWTWZWekV4b20xM0RCV0s3OVFqNHlnQ2dtNXVhb1giLCJuIjoicG1tLWFnZW50LW1hcmlhZGIxLTg0NDYwOTE3MzM2OTUzMDQ5MjAiLCJpZCI6MX0=@9.101.52.28:31654/”,
“insecure_tls”: true,
“connected”: true,
“version”: “2.37.0”,
“latency”: null,
“clock_drift”: null
},
“agents_info”: [
{
“agent_id”: “/agent_id/04b463e7-549b-4a59-90f2-26e6e004d113”,
“agent_type”: “VM_AGENT”,
“status”: “RUNNING”,
“listen_port”: 42000,
“process_exec_path”: “/usr/local/percona/pmm2/exporters/vmagent”
},
{
“agent_id”: “/agent_id/e6d23331-b4e2-453b-a14e-e91c4de7dc13”,
“agent_type”: “NODE_EXPORTER”,
“status”: “RUNNING”,
“listen_port”: 42001,
“process_exec_path”: “/usr/local/percona/pmm2/exporters/node_exporter”
}
],
“config_filepath”: “/usr/local/percona/pmm2/config/pmm-agent.yaml”,
“agent_version”: “2.37.1”,
“node_name”: “mariadb1”,
“connection_uptime”: 100
}
DEBUG 2023-06-21 17:32:31.168472169Z: POST /v1/management/MySQL/Add HTTP/1.1
Host: 9.101.52.28:31654
User-Agent: Go-http-client/1.1
Content-Length: 362
Accept: application/json
Authorization: Basic YXBpX2tleTpleUpySWpvaVIxVldUV1pXZWtWNGIyMHhNMFJDVjBzM09WRnFOSGxuUTJkdE5YVmhiMWdpTENKdUlqb2ljRzF0TFdGblpXNTBMVzFoY21saFpHSXhMVGcwTkRZd09URTNNek0yT1RVek1EUTVNakFpTENKcFpDSTZNWDA9
Content-Type: application/json
Accept-Encoding: gzip
{“node_id”:“/node_id/9cf1cfe1-4286-4cbf-b424-f8d6741f8126”,“service_name”:“Mariadb1_Mysql_Node1”,“address”:“9.101.52.38”,“port”:3306,“pmm_agent_id”:“/agent_id/40481888-308a-4955-a3c3-1c08534386c9”,“username”:“pmm”,“password”:“pass”,“qan_mysql_slowlog”:true,“max_slowlog_file_size”:“1073741824”,“metrics_mode”:“AUTO”,“disable_collectors”:null,“log_level”:“warn”}
DEBUG 2023-06-21 17:32:31.185197858Z: HTTP/1.1 400 Bad Request
Content-Length: 223
Connection: keep-alive
Content-Type: application/json
Date: Wed, 21 Jun 2023 17:32:31 GMT
Server: nginx
Strict-Transport-Security: max-age=63072000; includeSubdomains;
{
“error”: “Connection check failed: commands out of sync. Did you run multiple statements at once?.”,
“code”: 9,
“message”: “Connection check failed: commands out of sync. Did you run multiple statements at once?.”
}
DEBUG 2023-06-21 17:32:31.185313238Z: Result:
DEBUG 2023-06-21 17:32:31.185332733Z: Error: &my_sql.AddMySQLDefault{_statusCode:400, Payload:(*my_sql.AddMySQLDefaultBody)(0xc0005f0330)}
Connection check failed: commands out of sync. Did you run multiple statements at once?.
[root@mariadb1 ~]#
Thanks