Have configured pmm server and also pmm-client in kubernetes environment. when trying to run pmm-client after running pmm-server getting the following error.
ERRO[2022-06-06T03:03:21.598+00:00] failed to query events_statements_history: dial tcp XX.X.X.X:33062: connect: connection refused agentID=/agent_id/XX-.. component=agent-builtin type=qan_mysql_perfschema_agent
INFO[2022-06-06T03:03:22.437+00:00] time="2022-06-06T03:03:22Z" level=error msg="Error pinging mysqld: dial tcp XX.X.X.X:33062: connect: connection refused" source="exporter.go:88" agentID=/agent_id/XX-.. component=agent-process type=mysqld_exporter
INFO[2022-06-06T03:03:23.321+00:00] time="2022-06-06T03:03:23Z" level=error msg="Error pinging mysqld: dial tcp XX.X.0.X:3306: connect: connection refused" source="exporter.go:88" agentID=/agent_id/XX-.. component=agent-process type=mysqld_exporter
and so the pmm-client container in pxc pod is getting crashloopbackoff