This is the output of pmm-agent -v
ProjectName: pmm-agent
Version: 2.26.0
PMMVersion: 2.26.0
Timestamp: 2022-02-03 14:03:52 (UTC)
FullCommit: c74f5ae58331dc29af34d29c2b6905b8f47cc3ab
whereas when I add mysql with this command
sudo pmm-admin add mysql --trace --json --username=stats --socket=$(...) --replication-set=repl_set --query-source=perfschema
among other stuff I get this output
{"component":"agentlocal-transport","file":"/tmp/go/pkg/mod/github.com/go-openapi/runtime@v0.19.20/client/runtime.go:446","func":"github.com/go-openapi/runtime/client.(*Runtime).Submit","level":"debug","msg":"HTTP/1.1 200 OK\r\nContent-Length: 1171\r\nContent-Type: application/json\r\nDate: Tue, 31 May 2022 03:53:49 GMT\r\nGrpc-Metadata-Content-Type: application/grpc\r\n\r\n{\n \"agent_id\": \"/agent_id/8f33ef6f-1f6e-473c-8e6d-282735217f98\",\n \"runs_on_node_id\": \"/node_id/20fb4f3c-6157-4a16-b276-874c81f424e8\",\n \"server_info\": {\n \"url\": \"https://admin:admin@pmm-server-common-tls.service.consul:443/\",\n \"insecure_tls\": true,\n \"connected\": true,\n \"version\": \"2.26.0\",\n \"latency\": null,\n \"clock_drift\": null\n },\n \"agents_info\": [\n {\n \"agent_id\": \"/agent_id/475fe48d-5dc2-4562-b454-ea2e58d6249a\",\n \"agent_type\": \"VM_AGENT\",\n \"status\": \"RUNNING\",\n \"listen_port\": 42000\n },\n {\n \"agent_id\": \"/agent_id/4c649d28-f799-49ac-8b45-c564e4581ec2\",\n \"agent_type\": \"NODE_EXPORTER\",\n \"status\": \"RUNNING\",\n \"listen_port\": 42001\n },\n {\n \"agent_id\": \"/agent_id/51aef961-98f6-4bc3-9d05-6e118e8fa9d3\",\n \"agent_type\": \"QAN_MYSQL_PERFSCHEMA_AGENT\",\n \"status\": \"RUNNING\",\n \"listen_port\": 0\n },\n {\n \"agent_id\": \"/agent_id/e0b540e6-5d4d-4427-8e0d-bc861551f3dd\",\n \"agent_type\": \"MYSQLD_EXPORTER\",\n \"status\": \"RUNNING\",\n \"listen_port\": 42002\n }\n ],\n \"config_filepath\": \"/usr/local/percona/pmm2/config/pmm-agent.yaml\",\n \"agent_version\": \"2.17.0\"\n}\n","time":"2022-05-31T03:53:49Z"}
on the last line it indicates that the agent version is actually 2.17.0.
Can someone explain where this discrepancy is coming from? I am trying to upgrade the pmm-agent to above 2.20.0 to make the Explain/Table tabs work in QAN, because at the pmm-agent version of 2.17.0 the output of the REST calls to retrieve the query explain information is different than what the dashboard expects due to this change [PMM-8059] Update Query Analytics UI to clarify estimated results on MySQL 'explain' response where we modified original query - Percona JIRA and its related backend change [PMM-6278] Modification of MySQL 'Delete' queries to provide 'Explain' information - Percona JIRA
Thanks!