For Google Cloud Monitoring you need the following prerequisites:
to create a service account in your Google Cloud account and download the content of the JSON file
To generate service-account credentials and view the public credentials already created, follow these steps:- Open the Service accounts page. When prompted, select a project.
- Click CREATE SERVICE ACCOUNT.
- In the CREATE SERVICE ACCOUNT window, type a name for the service account, and select Furnish a new private key. Click Create.
When you create a key, your new public/private key pair is generated and downloaded to your machine.
Configure access to your Cloud SQL instance
To configure access to your instance, please follow these steps:
- From the client machine, use What's my IP to see the IP address of the client machine.
- Copy that IP address.
- Go to the Cloud SQL Instances page in the Google Cloud Console.