Google Cloud Stackdriver Monitor Compute Engine Di

2019-06-21 22:44发布

问题:

I have Google compute engine instances already up and running since recently.

I have explored Google Cloud stackdriver for monitoring CPU Usage etc.

I have installed Stackdriver agent on to one of the Compute Engine instance for testing. I have explored creating new chart on dashboard, tried with various metrics.

But I could not find any metrics that can show disk usage of my instance.

Yes there is list of plugins supported by Stackdriver agent to pump custom metrics but I could not find any specific metric that measure the instance disk usage.

Please give me a pointer.

Thanks

回答1:

Volume usage is added as a metrics after you install the standard agent (no additional plugins are needed). But you need to search for the word volume not disk to find this metric when adding it to a chart.

After you install the agent for the first time it can take a few minutes before the new metrics shows up.

FYI : the list of plugins https://cloud.google.com/monitoring/agent/plugins/. Mostly they add metrics for web-servers or database servers. And you can add custom metrics : https://cloud.google.com/monitoring/custom-metrics/

Cheers!