# How to change exporter listen port

**URL:** <https://forums.percona.com/t/how-to-change-exporter-listen-port/7444>\
**Category:** PMM 1.x\
**Created:** [February 25, 2020, 3:45am UTC](https://forums.percona.com/t/how-to-change-exporter-listen-port/7444 "2020-02-25T03:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lduriez](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lduriez/32/60_2.png) [@lduriez](https://forums.percona.com/u/lduriez)\
**Post date:** [February 25, 2020, 3:45am UTC](https://forums.percona.com/t/how-to-change-exporter-listen-port/7444/1 "2020-02-25T03:45:50Z")

</div>

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.

---

<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:** [April 21, 2020, 4:36am UTC](https://forums.percona.com/t/how-to-change-exporter-listen-port/7444/2 "2020-04-21T04:36:43Z")

</div>

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 &nbsp;&nbsp;&nbsp;&nbsp;  
COMMAND &nbsp;&nbsp;&nbsp;&nbsp;PID USER &nbsp;&nbsp;FD &nbsp;&nbsp;TYPE DEVICE SIZE/OFF NODE NAME  
  
mysqld\_ex 15700 root &nbsp;&nbsp;&nbsp;3u &nbsp;IPv4 &nbsp;24200 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0t0 &nbsp;TCP ip-10-178-1-179.us-east-2.compute.internal:9197 (LISTEN)  
  
mysqld\_ex 15700 root &nbsp;&nbsp;&nbsp;5u &nbsp;IPv4 &nbsp;24202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0t0 &nbsp;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 &nbsp;&nbsp;&nbsp;9u &nbsp;IPv4 &nbsp;24210 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0t0 &nbsp;TCP ip-10-178-1-179.us-east-2.compute.internal:9197-\>ip-172-17-0-2.us-east-2.compute.internal:37388 (ESTABLISHED)
