Well the bind-address option worked with client 1.0.7. Also both client and server are running 1.0.7.
While client is in our company DC, server is in AWS vpc.
Following is the config command that I used.
pmm-admin config --server PUBLIC-IP of Server --bind-address Internal ip of client --client-address Public ip of client
pmm-admin list shows that all metrics are working fine.
pmm-admin list
pmm-admin 1.0.7
PMM Server | PUBLIC-IP of Server
Client Name | XYZ.COMPANY.com
Client Address | Internal ip of client
Service Manager | unix-systemv
SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS
mysql:queries XYZ.COMPANY.com - YES root:@unix(/export/home/mysql/mysql.sock) query_source=slowlog
linux:metrics XYZ.COMPANY.com 42000 YES -
mysql:metrics XYZ.COMPANY.com 42002 YES root:@unix(/export/home/mysql/mysql.sock)
But check-network shows that server-> client has issue.
pmm-admin check-network
PMM Network Status
Server Address | PUBLIC-IP of Server
Client Address | Public ip of client (Internal ip of client )
SERVER SERVICE STATUS
Consul API OK
Prometheus API OK
Query Analytics API OK
Connection duration | 72.795236ms
Request duration | 83.901484ms
Full round trip | 156.69672ms
- Connection: Client ← Server
SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD
linux:metrics XYZ.COMPANY.com Public ip of client–>Internal ip of client:42000 DOWN YES -
mysql:metrics XYZ.COMPANY.com Public ip of client–>Internal ip of client:42002 DOWN YES -
Last log lines in the following logs on client machine
pmm-mysql-metrics-42002.log
time=“2017-01-02T23:29:17-08:00” level=info msg=“Starting mysqld_exporter (version=1.0.7, branch=master, revision=4a4c53fb313fb1883bcbd464f53c83f73b336100)” source=“mysqld_exporter.go:679”
time=“2017-01-02T23:29:17-08:00” level=info msg=“Build context (go=go1.7.4, user=, date=)” source=“mysqld_exporter.go:680”
time=“2017-01-02T23:29:17-08:00” level=info msg=“HTTPS/TLS is enabled” source=“mysqld_exporter.go:724”
time=“2017-01-02T23:29:17-08:00” level=info msg=“Listening on Internal ip of client:42002” source=“mysqld_exporter.go:727”
2017/01/02 23:29:44 http: TLS handshake error from Internal ip of client:47658: tls: first record does not look like a TLS handshake
pmm-linux-metrics-42000.log
time=“2017-01-02T23:29:16-08:00” level=info msg=“HTTPS/TLS is enabled” source=“node_exporter.go:235”
time=“2017-01-02T23:29:16-08:00” level=info msg=“Listening on Internal ip of client:42000” source=“node_exporter.go:238”
2017/01/02 23:29:44 http: TLS handshake error from Internal ip of client:50902: tls: first record does not look like a TLS handshake
Could you please let me know what is happening here? Client still doesnt show up the grafana.