The Simplest Way to Make BigQuery and Prtg Work Like They Should
Pairing bigquery and prtg lets teams store long-term network sensor data in a cloud warehouse. You can run fast queries on past uptime metrics and spot deep trends across your hosts. PRTG watches your local switches, servers, and apps in real time. It excels at fast alerts when a link goes down or a disk fills up. Yet keeping years of raw sensor logs inside the local tool can slow down checks. Moving old records into BigQuery gives your team a fast way to study past outages. You can join networ
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Pairing bigquery and prtg lets teams store long-term network sensor data in a cloud warehouse. You can run fast queries on past uptime metrics and spot deep trends across your hosts.
PRTG watches your local switches, servers, and apps in real time. It excels at fast alerts when a link goes down or a disk fills up. Yet keeping years of raw sensor logs inside the local tool can slow down checks. Moving old records into BigQuery gives your team a fast way to study past outages. You can join network stats with cloud billing or app logs in one place.
How data and roles flow between bigquery and prtg
Data moves between these two tools in two main ways. First, a script can pull sensor history from the PRTG web API on a set schedule. The script formats those rows and writes them into a BigQuery table. Second, PRTG can run a custom sensor that checks row counts or job status in BigQuery. This lets your operations screen turn red if a cloud data load fails.
Both paths need a cloud service account to log in and run jobs. The script or sensor holds a key file or uses a cloud role to sign requests. Google Cloud checks the role attached to that account before it allows any read or write. If the role matches the target dataset, the cloud runs the job and returns the result.
Common risks with shared keys and broad roles
Many teams set up this link with a single static key file on the PRTG probe. They often grant that account a broad project role so the first test works right away. This shortcut creates real risk for your cloud data. If someone gets onto the monitoring server, they can take that key file. They can then read or wipe any table in your cloud project.
Shared service accounts also ruin your audit logs. When ten scripts and sensors use the same cloud identity, every query looks the same. You cannot tell if a slow query came from a PRTG check or an engineer. Unlogged queries and wide network paths make incident reviews slow and painful.
BigQuery IAM + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, split read and write tasks into separate cloud accounts. Give the export script write rights on one dataset only. Give the PRTG sensor read rights on the single view it needs to check. Do not store raw items like emails, phone numbers, or card numbers in monitoring tables. If those fields exist in source logs, masking rewrites matched fields in results before export.
Scoping network paths and rotating keys
Lock down where your monitoring probes can send traffic. Your local probe only needs to reach the cloud API endpoint over HTTPS. Block all other outbound ports from that server at the firewall. Check your cloud logs each week to see which IP addresses use your service accounts.
Static keys sitting on Windows probes are hard to track over time. Set a strict schedule to swap out those keys every few weeks. Better yet, run your export jobs on a cloud worker that uses short-lived tokens. Keep the permissions tight so a broken sensor never puts your warehouse at risk.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Can PRTG read metrics straight from a BigQuery table?
Yes, you can set up a custom script sensor on your local probe. The script runs a small query against a cloud view and sends the number back to PRTG.
How do we stop PRTG sensors from driving up cloud query costs?
Point your sensors at small summary tables instead of huge raw log tables. You can also set a daily byte limit on the service account that runs the checks.
What is the safest way to store cloud keys on a PRTG server?
Keep key files in a folder that only the probe service user can read. Rotate those keys often and scope the cloud role to one dataset.
Related guides
In this post