# PMM-Client for Percona/Proxysql

**URL:** <https://forums.percona.com/t/pmm-client-for-percona-proxysql/6757>\
**Category:** PMM 1.x\
**Created:** [December 23, 2018, 6:15pm UTC](https://forums.percona.com/t/pmm-client-for-percona-proxysql/6757 "2018-12-23T18:15:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fward1208](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/fward1208/32/1249_2.png) [@fward1208](https://forums.percona.com/u/fward1208)\
**Post date:** [December 23, 2018, 6:15pm UTC](https://forums.percona.com/t/pmm-client-for-percona-proxysql/6757/1 "2018-12-23T18:15:17Z")

</div>

Good evening all and Merry Christmas. For those of you who celebrate, I hope everyone has a wonderful holiday with your family. Now on to my dilemma.

I have a Proxysql cluster that is serving for the Galera cluster and I would like to monitor the stats using the PMM server I have running for monitoring the Galera environment. As a test, I manually installed the pmm-client on each docker container, then configured it with the following command:

pmm-admin config --server pmmserver:443 --server-user pmm --server-password pmm --server-insecure-ssl --force --bind-address

I checked to ensure that they are active on each container:

* * *

SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD

* * *

proxysql:metrics proxysql02 10.0.7.232–\>10.0.7.160:42004 DOWN YES YES

I checked to ensure that they are able to communicate:

root@proxysql02:/# pmm-admin check-network  
PMM Network Status

Server Address | pmmserver:443  
Client Address | 10.0.7.232 (10.0.7.160)

- System Time  
NTP Server ([0.pool.ntp.org](http://0.pool.ntp.org)) | 2018-12-23 23:11:46 +0000 UTC  
PMM Server | 2018-12-23 23:11:46 +0000 GMT  
PMM Client | 2018-12-23 23:11:46 +0000 UTC  
PMM Server Time Drift | OK  
PMM Client Time Drift | OK  
PMM Client to PMM Server Time Drift | OK

- Connection: Client → Server

* * *

SERVER SERVICE STATUS

* * *

Consul API OK  
Prometheus API OK  
Query Analytics API OK

Connection duration | 1.186102ms  
Request duration | -665.377µs  
Full round trip | 520.725µs

I also checked the local log in order to ensure that they are gathering statistics:

root@proxysql02:/# cat /var/log/pmm-proxysql-metrics-42004.log  
time=“2018-12-23T13:28:40Z” level=info msg=“Starting proxysql\_exporter for stats:stats@tcp(localhost:6032)/” source=“proxysql\_exporter.go:65”  
time=“2018-12-23T13:28:41Z” level=info msg=“HTTP Basic authentication is enabled.” source=“basic\_auth.go:105”  
time=“2018-12-23T13:28:41Z” level=info msg=“Starting HTTPS server for [URL][https://10.0.7.160:42004/metrics[/URL]](https://10.0.7.160:42004/metrics%5B/URL%5D) …” source=“server.go:106”  
2018/12/23 23:11:46 http: TLS handshake error from 10.0.7.160:38430: tls: first record does not look like a TLS handshake  
2018/12/23 23:11:46 http: TLS handshake error from 10.0.7.160:38432: tls: first record does not look like a TLS handshake

So, client services are able to communicate with the server and I am running the clients for the Galera cluster using the same configuration. So why aren’t the stats being sent to the pmm server and therefore viewable in grafana?

Edit:  
I figured this out. It was a ip routing issue.

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [February 4, 2019, 2:17pm UTC](https://forums.percona.com/t/pmm-client-for-percona-proxysql/6757/2 "2019-02-04T14:17:36Z")

</div>

Hi [fward1208](https://percona.vanillacommunities.com/profile/x/x/42561)

Thank you for your update!
