I am looking for a way to see if I can print the recommendations for a GCP instance using gcloud cli or any of the available Google API so far no luck.
Asked
Active
Viewed 229 times
-1
-
what kind of recommendations ? – howie Jun 11 '19 at 10:34
-
Hi @howie, if you if see Google cloud console UI we see a recommendation for an instance to be update with few CPU's are few gig ram to be added. Just want to see if we can get the same information from cli. – Kishore Kumar A Jun 11 '19 at 11:37
-
No such cli and api~ – howie Jun 11 '19 at 12:27
-
1Actually, there is a recommendations API. It is not public yet. You will have to wait until its release. – John Hanley Jun 12 '19 at 14:20
1 Answers
0
If you are referring to Specifying a Minimum CPU Platform for VM Instances feature or to the gcloud command (link):
$ gcloud alpha compute instances set-min-cpu-platform
You can print the official documentation added in the above links.

HopsHops
- 55
- 4
-
thank you for your answer but it's not what I was looking for. In the column section of compute engine we can see a column called recommendations. I want to print/use it by using cli tools like gcloud or any of the available Google API's. – Kishore Kumar A Jun 12 '19 at 08:56
-
The [Monitoring Agent](https://cloud.google.com/compute/docs/instances/apply-sizing-recommendations-for-instances#using_the_monitoring_agent_for_more_precise_recommendations) gives you recommendations and you can use it with gcloud command. – HopsHops Jun 17 '19 at 09:14