Ravi
Ravi

Reputation: 342

How to pull Google Cloud Platform VM metrics using Java?

I want to write a Java program to pull the GCP VM metrics such as CPU utilization, memory utilization, disks i/o, network, disk utilization etc. I want to pull this information per instance (Similar to CloudWatch in AWS). I have set up the Stackdriver agent on each of my VM. I don't know what to do next.

Upvotes: 0

Views: 530

Answers (1)

David
David

Reputation: 9731

The Stackdriver agent sends the metrics to Stackdriver Monitoring, so you should use Stackdriver Monitoring to access this data. There is a Java client library for this.

Upvotes: 1

Related Questions