So we have the server responding now but when we try and add:
sudo pmm-admin add mysql:queries --user root --password 123 --query-source=perfschema
We get:
Error adding MySQL queries: timeout 10s waiting on agent to connect to API.
Checking logs we can see:
2016/12/08 13:38:46.021689 main.go:165: Starting agent…
2016/12/08 13:38:46.022273 main.go:343: Agent is ready
2016/12/08 13:38:46.029994 main.go:207: API is ready
2016/12/08 13:38:47.025344 WARNING log-ws read tcp 192.168.68.16:60127->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:38:47.025466 WARNING agent-ws read tcp 192.168.68.16:60126->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:38:50.027019 WARNING agent-ws read tcp 192.168.68.16:60129->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:38:50.027076 WARNING log-ws read tcp 192.168.68.16:60128->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:38:57.028584 WARNING agent-ws read tcp 192.168.68.16:60130->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:38:57.028670 WARNING log-ws read tcp 192.168.68.16:60131->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:39:12.030263 WARNING agent-ws read tcp 192.168.68.16:60132->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:39:12.030314 WARNING log-ws read tcp 192.168.68.16:60133->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:39:43.031821 WARNING agent-ws read tcp 192.168.68.16:60135->10.1.202.165:80: read: connection reset by peer
2016/12/08 13:39:43.031869 WARNING log-ws read tcp 192.168.68.16:60136->10.1.202.165:80: read: connection reset by peer
In our marathon/mesos setting the connection has to be by hostname and not ip otherwise it won’t route to the correct container. Does this mean it needs a dedicated IP after all?
sudo pmm-admin list
pmm-admin 1.0.6
PMM Server | pmm-server.prdmesos..com
Client Name | prdmesos-db01.
Client Address | 192.168.101.8
Service manager | linux-systemd
SERVICE TYPE NAME CLIENT PORT RUNNING DATA SOURCE OPTIONS
linux:metrics prdmesos-db01. 42000 NO -
mysql:metrics prdmesos-db01. 42002 NO root:***@unix(/var/lib/mysql/mysql.sock) tablestats=OFF