Hi !
I was try to add mysql:queries to my remote pmm server, but with no luck.
[root@hotel ~]# pmm-admin list
pmm-admin 1.1.3
PMM Server | 46.xx.xx.xx (password-protected)
Client Name | client-dns
Client Address | 88.xx.xx.xx
Service Manager | unix-systemv
SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS
linux:metrics xxxxx 42000 YES -
mysql:metrics xxxxx 42002 YES root:***@tcp(127.0.0.1:3306) tablestats=OFF
Both servers - mysql and pmm set with public IP and placed in different DC, linux and mysql metric working fine, but when i try add queries i get next error:
pmm-admin add mysql:queries
Error adding MySQL queries: timeout 10s waiting on agent to connect to API.
if check log
Version: percona-qan-agent 1.1.3
Basedir: /usr/local/percona/qan-agent
PID: 45814
API: 46.xx.xx.xx/qan-api
UUID: xxx
2017/05/26 11:22:48.517407 main.go:165: Starting agent…
2017/05/26 11:22:48.517892 main.go:346: Agent is ready
2017/05/26 11:22:58.548048 main.go:201: Cannot connect to API: GET http://admin:admin@192.168.122.68/qan-api/agents/xxx error: client.Do: Get http://admin:admin@192.168.122.68/qan-api/agents/xxx: dial tcp 192.168.122.68:80: i/o timeout. Verify that the agent UUID and API hostname printed above are correct and that no network issues prevent this host from accessing the API. Connection attempts to API will continue
until successful, but additional errors will not be logged, and agent will not send data until connected to API.
looks like qan agent try to use default private address for server connection.
if check qan-agent config they contain right server ip
“ApiHostname”:“46.xx.xx.xx”,
So what’s wrong with my installation and why qan-agent still try connect to private server ip except public?