izwan
izwan

Reputation: 115

Google Cloud Stackdriver Monitor Compute Engine Disk Usage

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

Upvotes: 11

Views: 8731

Answers (2)

Eugene Kulabuhov
Eugene Kulabuhov

Reputation: 2499

The UI changed slightly.

  1. Look for Operations -> Monitoring -> Metrics Explorer.
  2. Resource type: VM Instance
  3. Metric: Disk utilization (agent.googleapis.com/disk/percent_used)
  4. To filter by instance name (instead of numeric instance id) use: 'system metadata label -> name'

enter image description here

Upvotes: 2

eSniff
eSniff

Reputation: 5905

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. enter image description here

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!

Upvotes: 10

Related Questions