1

I am using Google Container Linux as an OS and want to get an alert when the disk is nearly full.

The issue is that it does not have an Ops Agent installed and does not report bytes_used to create an alert policy.

https://console.cloud.google.com/monitoring/dashboards/resourceList/gce_instance&timeDomain=1h&tab=inventory

enter image description here

enter image description here

enter image description here

zino
  • 1,222
  • 2
  • 17
  • 47

1 Answers1

0

As per the documentation, Ops agent is not yet supported and the GCP Product team is working on it. However, there is no SLA, and there is already some discussions opened in Github.

checking the Compute metrics list, It seems that in order to be able to use the metric bytes_used it is not necessary to install the agent, but you must enable the COS Health monitoring.

Please note that mentioned suggested metric is in Beta phase, which means: "Beta: At beta, products or features are ready for broader customer testing and use. Betas are often publicly announced. There are no SLAs or technical support obligations in a beta release unless otherwise specified in product terms or the terms of a particular beta program."

After enabling the COS Health monitoring, you can create an alerting policy by referring to this documentation.

Siegfred V.
  • 1,143
  • 3
  • 12
  • Thanks. Does the "node problem detector" logging agent report all mounted disks, or just the boot disk? I want an alert on one of the mounted disks, is this possible? – zino Sep 30 '22 at 17:37
  • mounted disks are also included on the reporting – Siegfred V. Oct 02 '22 at 22:20