# the pmm client still send the data to old pmm-server after reconfig the pmm-server's iP

**URL:** <https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834>\
**Category:** PMM 1.x\
**Tags:** pmm\
**Created:** [July 29, 2020, 1:04am UTC](https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834 "2020-07-29T01:04:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yz323](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yz323](https://forums.percona.com/u/yz323)\
**Post date:** [July 29, 2020, 1:04am UTC](https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834/1 "2020-07-29T01:04:12Z")

</div>

1、 the pmm client’s server is IP1 by command "pmm-admin config --server IP1"2、 there are too many data in server IP1, so I change some client to new server IP23、 after change to the pmm server IP2,&nbsp; all the configuration are IP2, but the pmm client still send the metrics data to IP1 and IP2,&nbsp;# pmm-admin listpmm-admin 1.17.1  
PMM Server&nbsp; &nbsp; &nbsp; | IP2:80   
# cat /usr/local/percona/pmm-client/pmm.ymlserver\_address: IP2:80  
# pmm-admin check-networkServer Address | IP2:80  
  
I restart the service in pmm client, but the pmm client still send the metrics data to both IP1 and IP2,pmm-admin stop --allpmm-admin remove --allpmm-admin add linux:metricspmm-admin add mysql:metrics  
even I uninstall the pmm client, the pmm client still send the metrics data to both IP1 and IP2rpm -e pmm-client-1.17.1-1.el7.x86\_64yum install pmm-client  
how can I stop the pmm client to send the data to old pmm server(IP1)

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [July 29, 2020, 5:03am UTC](https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834/2 "2020-07-29T05:03:27Z")

</div>

Hi,   
Prometheus on IP1 is still configured for scrapping exporters on your client machine.  
You may check Prometheus targets -\>&nbsp;[https://IP1/prometheus/targets](https://3.128.173.157/prometheus/targets)  
e.g.

 ![](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/a48c9c5fe5e11f77798396edde33be5ce673948c.png)  
You should config back pmm-client to IP1 server and perform commands for removing instances.&nbsp;  
# pmm-admin remove --help  
After it you may reconfigure pmm-client to IP2 server.

---

<div class="post-metadata">

**Author:** ![yz323](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yz323](https://forums.percona.com/u/yz323)\
**Post date:** [July 30, 2020, 9:44pm UTC](https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834/3 "2020-07-30T21:44:23Z")

</div>

thanks for your reply,I remove the instance by these commands:pmm-admin stop --allpmm-admin remove --allpmm-admin uninstallpmm-admin repairpmm-admin config–server IP1  
but it report errors:Unable to restart queries service for MySQL: “systemctl” failed: exit status 5  
I cann’t config back pmm-client to IP1&nbsp; ☹

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [July 31, 2020, 2:55am UTC](https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834/4 "2020-07-31T02:55:33Z")

</div>

Yes, you are right.  
I have managed to overcome it by modify the file&nbsp;/usr/local/percona/pmm-client/pmm.yml&nbsp;manually.  
You should set “server\_address: IP1”  
Also mysql service has to be added again.&nbsp;  
e.g.  
# pmm-admin add mysql PS\_NODE-1  
# pmm-admin remove mysql PS\_NODE-1&nbsp;  
Please replace PS\_NODE-1 name by an instance name that is show in prometheus targets for IP1  
[http://IP1/prometheus/targets ![](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/be430d5f1470d7d321ba9a0c5a971f2ecc8199bb.png "Image: /uploads/percona1/original/1X/be430d5f1470d7d321ba9a0c5a971f2ecc8199bb.png")](http://18.224.45.206/prometheus/targets "Link: http://18.224.45.206/prometheus/targets")

---

<div class="post-metadata">

**Author:** ![yz323](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@yz323](https://forums.percona.com/u/yz323)\
**Post date:** [July 31, 2020, 3:18am UTC](https://forums.percona.com/t/the-pmm-client-still-send-the-data-to-old-pmm-server-after-reconfig-the-pmm-servers-ip/7834/5 "2020-07-31T03:18:42Z")

</div>

it&nbsp; works, thank you !
