Integrate using Google Cloud console

Create resources manually in Google Cloud console

Google account running an installation should have Owner permissions for the Google Cloud project.

Otherwise the following roles are required: Service Usage Admin, Logging Admin, Pub/Sub Admin, Project IAM Admin.

1

Open the project to integrate with in the Google Cloud console

Select a project where you would like Masthead to monitor you BigQuery resources. Use this project to create all the following cloud resources.

2

Create Pub/Sub resources

  1. Go to Pub/Sub. Click Create Topic.

  2. Set Topic ID as masthead-topic. Remove checkbox for Add a default subscription.

  1. Navigate into the newly created. Click Create Subscription

  2. Set Subscription ID as masthead-agent-subscription

  3. Select Cloud Pub/Sub topic as masthead-topic, then scroll down a little ...

  4. Set Acknowledgement deadline as 60 seconds

  5. Click Create and we are all done with Pub/Sub topic and Subscription.

3

Create Logs Router

  1. Click Create sink at the of the page and fill in the required fields:

    1. Sink name: masthead-agent-sink

    2. Sink destination: Cloud Pub/Sub topic

    3. Select a newly created Pub/Sub topic: masthead-topic

  1. Choose logs to include in the sink: copy the filter text below and paste it into the field.

protoPayload.methodName="google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRows" OR "google.cloud.bigquery.v2.JobService.InsertJob" 
OR "google.cloud.bigquery.v2.TableService.InsertTable" 
OR "google.cloud.bigquery.v2.JobService.Query" 
resource.type ="bigquery_table" OR resource.type ="bigquery_dataset" OR resource.type ="bigquery_project"
  1. Click Create Sink

4

Grant roles to Masthead Service Account

  1. Click on Grant access

  2. In the New principals field enter [email protected]

  3. Click on Select a role and enter BigQuery Metadata Viewer. Select BigQuery Metadata Viewer role.

  4. Repeat for BigQuery Resource Viewer and Pub/Sub Subscriber .

  5. Click Save

5

Grant Masthead Service Account to get insights quickly using retrospective metadata

Masthead can provide you with insights within a few hours after integration by parsing retrospective logs and creating a data model around them.

This step enables Masthead to look up recently produced events in the Google Cloud logs that correspond to the Cloud Logs sink filter.

  1. Click on Grant access

  2. In the New principals field enter [email protected]

  3. Click on Select a role and enter Private Logs Viewer.

  4. Select Private Logs Viewer role.

  5. Click Save

6

Continue integration on the UI

Go back to Deployment page, click Verify custom deployment and enter the project ID.

Click Check permissions and connect.

7

Configuration Completed

Masthead installation will create your workspace and open your dashboard once setup is completed.

8

Workspace is ready!

You'll receive an email notification with the link to the workspace. We'll notify you once all the metadata is collected and the insights are ready.

All done! Thank you for completing installation!

Last updated