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

How to change exporter listen port

lduriezlduriez EntrantCurrent User Role Contributor
Hello,

I have an interrogation about changing the exporter listen port (node exporter, msql exporter, postgres exporter, etc), because I need to change some due to application tcp listener conflicts.

How can we manage that ? Is there a config file somewhere ?

If you have the solution thanks you.

Comments

  • adivinhoadivinho Percona Percona Staff Role
    Hi,
    The flag --service-port has to be used.
    e.g.
    # pmm-admin add mysql:metrics --service-port 9197
    2020/04/21 09:56:03 lsof: multiple sockets detected for pid(s) [14038 14570 15261], choosing first one: /var/lib/mysql/mysql.sock, /tmp/PS_NODE_1.sock
    OK, now monitoring MySQL metrics using DSN root:***@unix(/var/lib/mysql/mysql.sock)
    # lsof -i :9197     
    COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    mysqld_ex 15700 root    3u  IPv4  24200      0t0  TCP ip-10-178-1-179.us-east-2.compute.internal:9197 (LISTEN)
    mysqld_ex 15700 root    5u  IPv4  24202      0t0  TCP ip-10-178-1-179.us-east-2.compute.internal:9197->ip-172-17-0-2.us-east-2.compute.internal:37386 (ESTABLISHED)
    mysqld_ex 15700 root    9u  IPv4  24210      0t0  TCP ip-10-178-1-179.us-east-2.compute.internal:9197->ip-172-17-0-2.us-east-2.compute.internal:37388 (ESTABLISHED)

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.