Adding Agent With Same Hostnames

Is there any chance we can add two similar node name into pmm2 ? Like we can adding custom node name on second node.

Example.
I’ve to server with identical hostname but only different in domain
node1: common-postgres13-01.qa1.cld
node2: common-postgres13-01.qa2.cld

Checking local pmm-agent status...
pmm-agent is running.
Registering pmm-agent on PMM Server...
Failed to register pmm-agent on PMM Server: Node with name "common-postgres13-01" already exists. If you want override node, use --force option.

Hi Hendra,

Please specify a custom node name at the end of the command.
e.g.

pmm-admin config --server-insecure-tls --server-url=https://admin:admin@192.168.33.14:443 192.168.33.23 generic mynode
2 Likes

Thank you @adivinho , it worked.

1 Like

need some advice which url is better for a region abc.com.uk or abc.com/uk I have seen various sites using the same url with many regions like amazon, google, and many more.

1 Like

I think one domain and subdirectories (abc.com/uk) is better than different domains (http://abc.com.uk) or subdomains (uk.abc.com).
For SEO it will be one domain and it will have more weight.
Probably in all other cases, it does not matter whether it is one domain or several. Managing multiple domains will probably be more difficult.