Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is there a cost incurred after the Ops agent has been removed?

I installed the Ops agent from the Google Console, and removed the packages and services from inside the machine. However, I still don't see the notification that the Ops agent is not installed on the UI. Does it get charged even if the agent is uninstalled?

I searched for the Ops agent uninstallation notification on the UI, but I couldn't find it.

1 2 1,384
2 REPLIES 2

Hi @deepakb64050,

Welcome to the Google Cloud Community!

Have you removed the label goog-ops-agent-policy from the instance? You may do so by [1]:

  1. In the Google Cloud console, select Compute Engine, and then select VM instances
  2. Select the name of the VM that you want to edit.
  3. Click Edit.
  4. Go to the Labels section and then click + Add Labels.
  5. Locate the label with the key goog-ops-agent-policy and click Delete item.

Next, SSH into your VM and kindly run the command [2]:

sudo bash add-google-cloud-ops-agent-repo.sh --uninstall

To view the changes in the UI, kindly wait at least 1 hour for the "Ops agent installed" to become "Install Ops Agent".

You may also verify that you have removed the Ops agent instantly by heading to the Observability section of your VM instance and noticing that Memory Utilization and Disk Space Utilization are no longer updating.

I hope this answers your question.

Best,
Law

[1]. https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/manage-policies-auto-install#un...

[2]. https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/installation#uninstall

What is the pricing model of Ops Agent, does it incur any cost when installed in any Linux server?