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 realtime insights into metadata, configuration, metrics
- Watch the health of each service and alert on issues
Note: To remotely monitor GCP in a Kubernetes or Red Hat OpenShift cluster, do not install Instana host agent on each node of the cluster. Install host agent on a dedicated host machine.
Platforms
Monitored services
Installation
The Instana Google Cloud integration uses Service Accounts to create an API connection between Google Cloud and Instana.
Note: Depending on the number of monitored entities in your cloud environment, you might need to increase the maximum amount of available memory to your host agent. Agent memory can be increased by setting the environment variable
AGENT_MAX_MEM
to a value that is greater than the default value 512MB. For example, to set the agent memory to 1GB, you can set AGENT_MAX_MEM=1024mb
.
The following steps are instructions for creating the service account and providing Instana the service account credentials to begin making API calls on your behalf.
-
Go to Google Cloud credentials page for the Google Cloud project you would like to set up the Instana integration.
-
Press Create credentials, and then select Service account key.
-
In the Service account list, select New service account.
-
Give the service account a unique name.
-
Choose a role or create a custom one, which contains at least the following permissions:
monitoring.timeSeries.list
pubsub.subscriptions.list
pubsub.topics.list
resourcemanager.projects.get
cloudsql.instances.list
storage.buckets.list
-
Select JSON as the key type, and press create.
-
Take note where this file is saved, as it is needed to complete the integration.
-
In the host agent configuration file
<instana-agent-dir>/etc/instana/configuration.yaml
, add a fieldcredentials_path
to thecom.instana.plugin.gcp
section, and designate the value with the path of the credentials file.See the following example:
com.instana.plugin.gcp: poll_rate: 60 # How often Google's monitoring API will be 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: