Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Recommender API recommendations and insights

Hey,

I am trying to use the recommender API for one of my projects on the GCP.
I have been using the recommenders and insights for that project.
I am facing an issue that whenever i hit any command on google cloud shell regarding the recommendation list or insights list, i am getting a common undesirable output "Listed 0 items."

Example,
Input: gcloud beta recommender insights list --project=my_project_id --location=global --insight-type=google.compute.instance.CpuUsageInsight
Output: Listed 0 items

Input: gcloud recommender recommendations list --project=my_project_id --location=global --recommender=google.compute.instance.IdleResourceRecommender
Output: Listed 0 items

If anybody has worked on it previously and has faced same issues please guide me with the reason and solutions to this error

 

0 1 267
1 REPLY 1

Hi @rajat_1202,

Welcome to Google Cloud Community!

Try changing --location to a zone instead of region and please see if that works.

Also, has your project been around for a few days? Some recommendations require a period of usage to generate a recommendation. 

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Top Labels in this Space
Top Solution Authors