Connecting
1
Create a service account in Google Cloud
Create a service account with read access to the datasets Superhawk should query, and the ability to run query jobs.
2
Generate a JSON key
Create a key for that service account and download the JSON.
3
Open Integrations in Superhawk
Go to Integrations and find BigQuery under Data Warehouse.
4
Paste the service account JSON
Paste the full JSON key. Superhawk verifies access immediately.
Grant the narrowest access that works: read on the specific datasets Superhawk needs, and nothing else. It never needs write access.
Defining metrics against it
Connecting BigQuery makes it available as a source. The useful work is defining the metrics that read from it. Go to Configure Metric and define each metric: what it measures, how it resolves to a single account, and what window it is computed over. See Metrics.Cost
Superhawk queries your warehouse on a schedule, and BigQuery charges by data scanned. Two things keep that reasonable:- Scope metrics to the columns and partitions they need. A metric that scans a whole table each run costs many times one that reads a partition.
- Match the schedule to how fast the number moves. A metric that changes weekly does not need computing hourly.
What it feeds
- Metrics — the values themselves
- Account health — as quantified health factors
- Signals — thresholds and trend breaks
- Reports and briefs — the numbers you take into a customer conversation