Announcements
The Google Cloud Community will be in read-only from July 16 - July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Disable logging or change port of ops-agent

Hello, 

Is there a way to disable or change the google-cloud-ops-agent port 20202? I have a VM which is hosting Splunk and listening on port 20202. To monitor disks attached to the same VM the agent was installed but caused an issue when the server went down and Splunk refused to come up due to port conflict. 

My Scenario - 

1. I want to keep monitoring the attached volumes

2. Splunk should also be running (can't change the port of this)

Solved Solved
0 3 1,285
1 ACCEPTED SOLUTION

Hello @sdubey , indeed Cloud Ops agent uses ports 20201 and 20202 for internal monitoring. Unfortunately, at this moment these ports cannot be changed. There is an open feature request for this functionality. I have added your input to the request to reflect that this functionality is required by customers.

View solution in original post

3 REPLIES 3

Hello @sdubey , indeed Cloud Ops agent uses ports 20201 and 20202 for internal monitoring. Unfortunately, at this moment these ports cannot be changed. There is an open feature request for this functionality. I have added your input to the request to reflect that this functionality is required by customers.

Hello @leoy @sdubey 

Is there any config file, where we can add or restrict the ports used by ops agent on windows.

Thank you

 

Hello @TeflonJohn , I checked and found that the current answer is correct today. There is no option to reconfigure these ports that are used "locally" within the machine. In my understanding these ports can be restricted for ingress communication from external addresses.

Since this set of ports is not configurable there is no option to add ports. You can describe your use case and contribute to the existing issue opened on Github.

Best regards,
Leonid