Not the answer you need?
Register and ask your own question!

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

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 IP2
3、 after change to the pmm server IP2,  all the configuration are IP2, but the pmm client still send the metrics data to IP1 and IP2, 
# pmm-admin list
pmm-admin 1.17.1

PMM Server      | IP2:80

# cat /usr/local/percona/pmm-client/pmm.yml
server_address: IP2:80

# pmm-admin check-network
Server 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 --all
pmm-admin remove --all
pmm-admin add linux:metrics
pmm-admin add mysql:metrics

even I uninstall the pmm client, the pmm client still send the metrics data to both IP1 and IP2
rpm -e pmm-client-1.17.1-1.el7.x86_64
yum install pmm-client

how can I stop the pmm client to send the data to old pmm server(IP1)
Tagged:

Answers

  • adivinhoadivinho Percona Percona Staff Role
    Hi,
    Prometheus on IP1 is still configured for scrapping exporters on your client machine.
    You may check Prometheus targets -> https://IP1/prometheus/targets
    e.g.

    You should config back pmm-client to IP1 server and perform commands for removing instances. 
    # pmm-admin remove --help
    After it you may reconfigure pmm-client to IP2 server.
  • yz323yz323 Current User Role Novice
    thanks for your reply,
    I remove the instance by these commands:
    pmm-admin stop --all
    pmm-admin remove --all
    pmm-admin uninstall
    pmm-admin repair
    pmm-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  :(
  • adivinhoadivinho Percona Percona Staff Role
    Yes, you are right.
    I have managed to overcome it by modify the file /usr/local/percona/pmm-client/pmm.yml manually.
    You should set "server_address: IP1"
    Also mysql service has to be added again. 
    e.g.
    # pmm-admin add mysql PS_NODE-1
    # pmm-admin remove mysql PS_NODE-1 
    Please replace PS_NODE-1 name by an instance name that is show in prometheus targets for IP1
    http://IP1/prometheus/targets
  • yz323yz323 Current User Role Novice
    it  works, thank you !
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.