My Shitty Code

Embracing the Messiness in Search of Epic Solutions

Tag: Stackdriver

  • GCP Stackdriver Agent: “write_gcm: can not take infinite value” Error

    PROBLEM When running the stackdriver-agent (v6.x), the log file contains the following errors:- SOLUTION By default, the swap metric is enabled. To verify, go to /etc/stackdriver/collectd.conf and locate the following configuration:- This error occurs because the VM instance does not have swap memory, hence this metric plugin tries to divide by 0. To verify the […]