The guess you made is a correct one. However, the same counters are working on our updated Test environment without an issue. Does it have to do with the version of ArcGIS Enterprise.
Can we use the Site URL, something like https://<domain-name >/enterprise/sharing/rest/generateToken without the port to configure our counter?
Also, recently the ArcSOC Optimizer tasks that were previously working fine, started giving the following error
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>
Any idea as to what is not working is highly appreciated.
Abdur Rahman
GIS Developer