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
1
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
2
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
3
Generate the JSON key
- Go to IAM & Admin > Service Accounts
- Click on your
antimetal-monitoringservice account - Go to the Keys tab
- Click ADD KEY > Create new key with JSON format
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