Monitoring Google Cloud Platform (GCP)
To provide visibility and insights of Google Cloud Platform cloud-based environments, you can use Instana host agent to automatically discover and monitors GCP services by:
- Providing real-time insights into metadata, configuration, and metrics.
- Monitor the health of each service and configure alerts for issues that might occur.
Installing Instana host agent
Instana agent can be installed in multiple hosts. For more information, see Installing host agents.
Platforms
Monitored services
Installation
The Instana Google Cloud integration uses Service Accounts to create an API connection between Google Cloud and Instana.
AGENT_MAX_MEM to a value that is greater than the
default value of 544 MiB. For example, to set the agent memory to 1
GB, you can set AGENT_MAX_MEM=1024M.The following steps are instructions for creating the service account and providing Instana with the service account credentials to begin making API calls on your behalf.
-
Access the Google Cloud credentials page for the Google Cloud project for which you want to set up the Instana integration.
-
Click CREATE CREDENTIALS > Service account.
-
In the Create Service account page, enter a unique name for the service account, and click CREATE AND CONTINUE.
-
Select a role from the list or create a custom one. You need to have at least the following permissions:
-
monitoring.timeSeries.list -
pubsub.subscriptions.list -
pubsub.topics.list -
resourcemanager.projects.get -
cloudsql.instances.list -
storage.buckets.list
To create a custom role, complete the following steps:
- From the navigation menu, click Roles > CREATE ROLE.
- Enter the title of the role, and click ADD
PERMISSIONS.
- Add the basic permissions that are mentioned previously, which are required for the role, and click CREATE.
-
-
Select the account you created from the list of service accounts.
-
Select the KEYS tab, and click ADD KEY.
-
Select Create new key and select the key type as JSON, and then click CREATE.
Note: You need to record the location of the credential file where it is saved to complete the integration. -
Add a field
credentials_pathto theconfiguration.ymlfile with the path to the credentials file. See the following example:com.instana.plugin.gcp: poll_rate: 60 # How often Google's monitoring API is polled in seconds credentials_path: '/opt/instana/credentials/cred-gcp.json' # Path to Service Account credentials exclude_tags: '' include_tags: ''
To monitor projects, the following services need to be enabled: