Overview
This guide walks you through creating a GCP service account to enable the Antimetal integration for monitoring traces, logs, and metrics across your GCP projects.Set up in Antimetal
Go to the GCP integration setup in the Antimetal dashboard.
Prerequisites
- A GCP account with permissions to create service accounts
- Access to IAM & Admin settings
- Admin access to the projects you want to monitor
Setup
- GCP Console
- Terraform / IaC
Create the service account
- Go to Google Cloud Console
- Navigate to the project where you do your monitoring/observability work
- Go to IAM & Admin > Service Accounts
- Click + CREATE SERVICE ACCOUNT
- Fill in the details:
- Name:
antimetal-monitoring - ID:
antimetal-monitoring - Description:
Service account for Antimetal monitoring integration
- Name:
- Click CREATE AND CONTINUE
- Copy the created service account email address
Grant permissions to each project
For each project you want to monitor (including the one where you created the service account):
- Navigate to the target project
- Go to IAM & Admin > IAM
- Click + GRANT ACCESS
- In New principals, enter the service account email:
- Assign these roles:
Monitoring Viewer(roles/monitoring.viewer)Logs Viewer(roles/logging.viewer)Cloud Trace User(roles/cloudtrace.user)Error Reporting Viewer(roles/errorreporting.viewer)Cloud Asset Viewer(roles/cloudasset.viewer)
- Click Save
- Repeat for all projects you want to monitor
Configure the Antimetal integration
- Navigate to the Antimetal GCP integration page
- Upload or paste the contents of the downloaded JSON key file
- Specify the project IDs you granted permissions to
Required permissions summary
The service account will have these read-only permissions across your specified projects:| Role | Access |
|---|---|
| Monitoring Viewer | Read access to metrics and monitoring data |
| Logs Viewer | Read access to Cloud Logging data |
| Cloud Trace User | Read access to distributed tracing data |
| Error Reporting Viewer | Read access to error groups and events |
| Cloud Asset Viewer | Read access to cloud resource metadata and configurations |