Pmm client exporters change listen address how?

Hi guys,

I can’t find in the documentation, what is the best way to change default listen address of the agents.

tcp 0 0 127.0.0.1:42000 0.0.0.0:* LISTEN 1820237/vmagent
tcp 0 0 0.0.0.0:4567 0.0.0.0:* LISTEN 1812706/mysqld
tcp 0 0 127.0.0.1:38653 0.0.0.0:* LISTEN 1818668/pmm-agent
tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 1818668/pmm-agent
tcp6 0 0 :::33060 :::* LISTEN 1812706/mysqld
tcp6 0 0 :::3306 :::* LISTEN 1812706/mysqld
tcp6 0 0 :::42001 :::* LISTEN 1818964/node_export
tcp6 0 0 :::42002 :::* LISTEN 1820232/mysqld_expo

I would like to change the listen address of ports 42001 and 42002 to be 127.0.0.1 .
For example:
tcp6 0 0 127.0.0.1:42001 0.0.0.0:* LISTEN 1818964/node_export
tcp6 0 0 127.0.0.1:42002 0.0.0.0:* LISTEN 1820232/mysqld_expo

I don’t want the node_exporter and mysql_exporter to listen on any external interfaces for security reasons. Is that possible ?

Didn’t find any options in /usr/local/percona/pmm2/config/pmm-agent.yaml .

Also, this didn’t work for me:

/usr/sbin/pmm-agent --config=/usr/local/percona/pmm2/config/pmm-agent.yaml --id=/agent_id/nodexporterid --listen-address=127.0.0.1 --listen-port=42001

Please advice :slight_smile:

1 Like

Hi,

I am also facing same issue, can you please share the steps to changing local host to server IP.